Function at 0x401130
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412af2
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x41c268]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x34], edi
lea ebx, [edi + 0xc]
mov dword [edi], vtable.MaintainerWorker.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebx], 0
mov eax, dword [0x41c230]
mov ecx, 0x41c230
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x20], ebx
lea esi, [edi + 0x10]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [edi + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [0x41c230]
mov ecx, 0x41c230
mov dword [ebp - 4], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [0x41c230]
mov ecx, 0x41c230
mov byte [ebp - 4], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x18], eax
lea eax, [edi + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41c230]
mov ecx, 0x41c230
mov byte [ebp - 4], 2
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41c230]
mov ecx, 0x41c230
mov byte [ebp - 4], 3
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x20], eax
mov eax, dword [0x41c230]
add edi, 0x24
mov ecx, 0x41c230
mov byte [ebp - 4], 4
mov dword [ebp - 0x2c], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
mov byte [ebp - 4], 5
jge 0x401251
push 0x104
mov ecx, esi
call fcn.00402ff0
mov ecx, dword [esi]
cmp dword [ecx - 8], 0x104
jge 0x401266
push 0x80070057
call fcn.004018b0
push 0x104
mov dword [ecx - 0xc], 0x104
mov eax, dword [esi]
xor edx, edx
push ecx
push edx
mov word [eax + 0x208], dx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, eax
test ecx, ecx
js 0x40125c
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40125c
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4012f1
push edi
call fcn.00408447
add esp, 4
mov ebx, eax
push ebx
push edi
push dword [ebp - 0x14]
push dword [esi]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4012ee
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x414320
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4012ee
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x38]
push dword [ebp - 0x1c]
call fcn.00403810
mov ebx, dword [ebp - 0x20]
mov esi, dword [0x41d370]
mov ecx, dword [ebp - 0x24]
push 0x67
push esi
call fcn.00402e50
mov ecx, dword [ebp - 0x30]
push 0x69
push esi
call fcn.00402e50
mov ecx, dword [ebp - 0x28]
push 0x66
push esi
call fcn.00402e50
mov ecx, dword [ebp - 0x2c]
push 0x68
push esi
call fcn.00402e50
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401350
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x401350
mov dword [ebx], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004087da
mov esp, ebp
pop ebp
ret