Function at 0x409640
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42029c
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x42d030]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x238], eax
mov esi, ecx
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x244], edi
push 0x208
lea ecx, [ebp - 0x21c]
push edi
push ecx
mov dword [ebp - 4], edi
call fcn.0041ecbc
add esp, 0xc
mov eax, esi
lea ecx, [ebp - 0x21c]
call fcn.004095f0
push edi
lea edx, [ebp - 0x21c]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jne 0x409774
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x224]
lea esi, [ebp - 0x234]
mov dword [ebp - 0x224], edi
call fcn.0040be80
lea ebx, [ebp - 0x224]
mov dword [ebp - 0x224], edi
call fcn.0040be80
lea ebx, [ebp - 0x224]
mov dword [ebp - 0x224], edi
call fcn.0040be80
lea ebx, [ebp - 0x224]
mov dword [ebp - 0x224], edi
call fcn.0040be80
mov edi, dword [ebp - 0x238]
lea ebx, [ebp - 0x234]
call fcn.0040bdf0
mov eax, dword [ebp - 0x230]
xor esi, esi
cmp eax, esi
je 0x409755
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
cmp eax, esi
jmp 0x409951
push esi
call fcn.0041e82d
add esp, 4
push esi
mov ebx, eax
push edi
push ebx
mov dword [ebp - 0x224], ebx
call fcn.0041ecbc
add esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 0x21c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, edi
jne 0x409817
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov byte [ebp - 4], 2
lea ebx, [ebp - 0x220]
lea esi, [ebp - 0x234]
mov dword [ebp - 0x220], edi
call fcn.0040be80
lea ebx, [ebp - 0x220]
mov dword [ebp - 0x220], edi
call fcn.0040be80
lea ebx, [ebp - 0x220]
mov dword [ebp - 0x220], edi
call fcn.0040be80
lea ebx, [ebp - 0x220]
mov dword [ebp - 0x220], edi
call fcn.0040be80
mov ecx, dword [ebp - 0x224]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x40972f
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x240]
push eax
push 0x42525c
push ebx
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], edi
call sub.VERSION.dll_VerQueryValueW
cmp eax, edi
jne 0x4098b4
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov byte [ebp - 4], 3
lea ebx, [ebp - 0x220]
lea esi, [ebp - 0x234]
mov dword [ebp - 0x220], edi
call fcn.0040be80
lea ebx, [ebp - 0x220]
mov dword [ebp - 0x220], edi
call fcn.0040be80
lea ebx, [ebp - 0x220]
mov dword [ebp - 0x220], edi
call fcn.0040be80
lea ebx, [ebp - 0x220]
mov dword [ebp - 0x220], edi
call fcn.0040be80
mov ecx, dword [ebp - 0x224]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x40972f
mov esi, dword [ebp - 0x240]
mov ecx, 0xd
lea edi, [ebp - 0x284]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x27c]
mov edx, edi
shr edx, 0x10
lea ebx, [ebp - 0x220]
lea esi, [ebp - 0x250]
mov dword [ebp - 0x220], edx
call fcn.0040be80
movzx eax, di
lea ebx, [ebp - 0x220]
mov dword [ebp - 0x220], eax
call fcn.0040be80
mov edi, dword [ebp - 0x278]
mov ecx, edi
shr ecx, 0x10
lea ebx, [ebp - 0x220]
mov dword [ebp - 0x220], ecx
call fcn.0040be80
movzx edx, di
lea ebx, [ebp - 0x220]
mov dword [ebp - 0x220], edx
call fcn.0040be80
mov eax, dword [ebp - 0x224]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov edi, dword [ebp - 0x238]
add esp, 4
mov ebx, esi
call fcn.0040bdf0
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x40995c
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e838
mov esp, ebp
pop ebp
ret