Function at 0x401860
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x42d030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x850], ecx
mov dword [ebp - 0x84c], edx
je 0x401b71
cmp word [esi], di
je 0x401b71
push ebx
push 0x208
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 0x844], edi
mov word [ebp - 0x210], di
call fcn.0041ecbc
push 0x208
lea ecx, [ebp - 0x626]
push edi
push ecx
mov dword [ebp - 0x83c], edi
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x854], edi
mov dword [ebp - 0x840], edi
mov word [ebp - 0x628], di
call fcn.0041ecbc
push 0x208
lea edx, [ebp - 0x832]
push edi
push edx
mov word [ebp - 0x834], di
call fcn.0041ecbc
push 0x208
lea eax, [ebp - 0x41a]
push edi
push eax
mov word [ebp - 0x41c], di
call fcn.0041ecbc
add esp, 0x30
push edi
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, edi
jne 0x401946
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e838
mov esp, ebp
pop ebp
ret
push 0x42da50
push ebx
call fcn.0041e847
mov edi, eax
add esp, 8
test edi, edi
je 0x401b5a
push edi
push ebx
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401b51
lea ecx, [ebp - 0x854]
push ecx
lea edx, [ebp - 0x840]
push edx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401b51
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0041ecbc
mov eax, dword [ebp - 0x840]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
mov esi, dword [sym.imp.MSVCR80.dll__snwprintf]
push ecx
push edx
push str.StringFileInfo_04x_04xFileDescription
lea eax, [ebp - 0x210]
push 0x104
push eax
call esi
add esp, 0x20
lea ecx, [ebp - 0x838]
push ecx
lea edx, [ebp - 0x83c]
push edx
lea eax, [ebp - 0x210]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
je 0x401a12
cmp dword [ebp - 0x838], 0
jbe 0x401a12
mov ecx, dword [ebp - 0x83c]
push 0x105
push ecx
lea edx, [ebp - 0x628]
push edx
call ebx
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0041ecbc
mov eax, dword [ebp - 0x840]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04xFileVersion
lea eax, [ebp - 0x210]
push 0x104
push eax
call esi
add esp, 0x20
lea ecx, [ebp - 0x838]
push ecx
lea edx, [ebp - 0x83c]
push edx
lea eax, [ebp - 0x210]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401a87
cmp dword [ebp - 0x838], 0
jbe 0x401a87
mov ecx, dword [ebp - 0x83c]
push 0x105
push ecx
lea edx, [ebp - 0x834]
push edx
call ebx
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0041ecbc
mov eax, dword [ebp - 0x840]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04xProductName
lea eax, [ebp - 0x210]
push 0x104
push eax
call esi
add esp, 0x20
lea ecx, [ebp - 0x838]
push ecx
lea edx, [ebp - 0x83c]
push edx
lea eax, [ebp - 0x210]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401afc
cmp dword [ebp - 0x838], 0
jbe 0x401afc
mov ecx, dword [ebp - 0x83c]
push 0x105
push ecx
lea edx, [ebp - 0x41c]
push edx
call ebx
mov eax, dword [ebp - 0x848]
test eax, eax
je 0x401b15
push 0x104
lea ecx, [ebp - 0x628]
push ecx
push eax
call ebx
mov eax, dword [ebp - 0x850]
test eax, eax
je 0x401b2e
push 0x104
lea edx, [ebp - 0x834]
push edx
push eax
call ebx
mov eax, dword [ebp - 0x84c]
test eax, eax
je 0x401b47
push 0x104
lea ecx, [ebp - 0x41c]
push ecx
push eax
call ebx
mov dword [ebp - 0x844], 1
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebp - 0x844]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e838
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0041e838
mov esp, ebp
pop ebp
ret