Function at 0x470820
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e2248
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x831704]
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 esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x470884
push 0x208
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp + 8]
call fcn.00429330
mov eax, dword [ebp + 0x18]
cmp dword [0x82e960], 0
je 0x4708f6
test eax, eax
jne 0x4708bc
push eax
push str._strModuleName.IsEmpty__
push str.wxFileVersion::Open
push 0x2a
push 0x7cdb74
call fcn.005c6f20
add esp, 0x14
cmp byte [0x87c8e0], 0
je 0x4708bc
mov byte [0x87c8e0], 0
int3
cmp dword [0x82e960], 0
je 0x4708f6
cmp dword [esi], 0
je 0x4708f6
push 0
push str.m_lpVersionData__0
push 0x7cdb48
push 0x2b
push 0x7cdb38
call fcn.005c6f20
add esp, 0x14
cmp byte [0x87c8e0], 0
je 0x4708f6
mov byte [0x87c8e0], 0
int3
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp + 8]
call fcn.0041f670
mov ecx, dword [eax]
cmp dword [ecx + 0x14], 8
jb 0x47090f
mov ecx, dword [ecx]
mov eax, dword [eax + 4]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x234]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
cmp byte [ebp - 0x228], 0
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 0x220], eax
je 0x47097a
mov edi, dword [ebp - 0x230]
test edi, edi
je 0x47097a
push dword [edi + 0x18]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [edi + 0x14], 8
jb 0x47095b
push dword [edi]
call ebx
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push edi
mov word [edi], ax
call ebx
mov eax, dword [ebp - 0x220]
add esp, 4
test eax, eax
je 0x470a34
push eax
call fcn.006cff38
add esp, 4
lea ecx, [ebp + 8]
mov edi, eax
lea eax, [ebp - 0x230]
mov dword [esi], edi
push eax
call fcn.0041f670
mov ecx, dword [eax]
cmp dword [ecx + 0x14], 8
jb 0x4709a8
mov ecx, dword [ecx]
mov eax, dword [eax + 4]
push edi
push dword [ebp - 0x220]
push dword [ebp - 0x234]
lea eax, [ecx + eax*2]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
sete al
cmp byte [ebp - 0x228], 0
mov byte [ebp - 0x219], al
je 0x470a18
mov edi, dword [ebp - 0x230]
test edi, edi
je 0x470a18
push dword [edi + 0x18]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [edi + 0x14], 8
jb 0x4709f9
push dword [edi]
call ebx
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push edi
mov word [edi], ax
call ebx
mov al, byte [ebp - 0x219]
add esp, 4
test al, al
je 0x470a74
push dword [esi]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
xor bl, bl
push dword [ebp + 0x20]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [ebp + 0x1c], 8
jb 0x470a54
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
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.006d1ba7
mov esp, ebp
pop ebp
ret 0x20
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x224]
push eax
push str.VarFileInfoTranslation
push dword [esi]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x470a1c
mov eax, dword [ebp - 0x224]
mov bl, 1
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [esi + 4], ecx
jmp 0x470a36