Function at 0x4872f0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4e489c
push eax
mov eax, 0x1038
mov dword fs:[0], esp
call fcn.004a5e10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1054]
push edi
mov edi, ecx
mov eax, dword [esi + 0x28]
lea ebx, [esi + 0x28]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x487330
xor eax, eax
jmp 0x4875db
mov eax, dword [edi]
test eax, eax
jne 0x487350
push str.DLL_manager_did_not_initialise_correctly
push esi
mov ecx, 0x517ff8
call fcn.00468c70
mov eax, 0xa
jmp 0x4875db
push eax
lea ecx, [eax + 0x10]
call fcn.004bb55b
mov ecx, dword [edi]
push ebx
add ecx, 0x10
call fcn.004bb83a
mov eax, dword [edi]
lea ecx, [eax + 4]
push ecx
lea ecx, [eax + 0x10]
call fcn.004bb83a
mov edx, dword [edi]
lea ecx, [esp + 0x24]
push ecx
mov eax, dword [edx + 0x10]
push eax
call fcn.004a43f6
or ebx, 0xffffffff
add esp, 8
cmp eax, ebx
jne 0x4873f1
mov edx, dword [0x510fe4]
mov dword [esp + 0x10], edx
push 0x400
lea ecx, [esp + 0x14]
mov dword [esp + 0x1054], 0
call fcn.004bb852
mov eax, dword [edi]
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x10]
push eax
push str.Resource_file__s_cannot_be_accessed
push ecx
call fcn.004b4789
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, 0x517ff8
push edx
push esi
call fcn.00468c70
lea ecx, [esp + 0x10]
mov dword [esp + 0x1050], ebx
call fcn.004bb422
mov eax, 1
jmp 0x4875db
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
push ecx
mov eax, dword [eax + 0x10]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x18], eax
jne 0x48746e
mov edx, dword [0x510fe4]
mov dword [esp + 0x10], edx
push 0x400
lea ecx, [esp + 0x14]
mov dword [esp + 0x1054], 1
call fcn.004bb852
mov eax, dword [edi]
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x10]
push eax
push str.Resource_file__s_does_not_contain_version_information
push ecx
call fcn.004b4789
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, 0x517ff8
push edx
push esi
call fcn.00468c70
lea ecx, [esp + 0x10]
mov dword [esp + 0x1050], ebx
call fcn.004bb422
mov eax, 3
jmp 0x4875db
mov eax, dword [edi]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x48]
mov eax, dword [eax + 0x10]
push ecx
push 0x1000
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x50]
push 0x50efe8
push edx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x48750d
mov eax, dword [0x510fe4]
mov dword [esp + 0x10], eax
push 0x400
lea ecx, [esp + 0x14]
mov dword [esp + 0x1054], 2
call fcn.004bb852
mov ecx, dword [edi]
lea edx, [esp + 0x10]
mov eax, dword [ecx + 0x10]
push eax
push str.Resource_file__s_does_not_contain_version_information
push edx
call fcn.004b4789
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, 0x517ff8
push eax
push esi
call fcn.00468c70
lea ecx, [esp + 0x10]
mov dword [esp + 0x1050], ebx
call fcn.004bb422
mov eax, 3
jmp 0x4875db
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 8]
mov ebx, eax
and eax, 0xffff
mov ebp, eax
mov eax, dword [esi + 0xc]
shr ebx, 0x10
cmp ebx, eax
jne 0x48756a
cmp ebp, dword [esi + 0x10]
jne 0x48756a
mov eax, dword [esp + 0x105c]
test eax, eax
je 0x487566
mov ebx, dword [esi + 0x2c]
test ebx, ebx
jl 0x487566
mov eax, dword [esi + 0x30]
cmp ebx, eax
jg 0x487566
push 0
lea edx, [esp + 0x4c]
push 0x1000
push edx
push ebx
push esi
mov ecx, edi
call fcn.00487760
test eax, eax
jne 0x4875db
mov eax, dword [esi + 0x30]
inc ebx
cmp ebx, eax
jle 0x487545
xor eax, eax
jmp 0x4875db
mov eax, dword [0x510fe4]
mov dword [esp + 0x14], eax
push 0x1000
lea ecx, [esp + 0x18]
mov dword [esp + 0x1054], 3
call fcn.004bb852
mov ecx, dword [edi]
mov edx, dword [esi + 0x14]
push edx
mov edx, dword [esi + 0xc]
mov eax, dword [ecx + 0x10]
mov ecx, dword [esi + 0x10]
push ecx
push edx
push ebp
push ebx
push eax
lea eax, [esp + 0x2c]
push str.Resource_file__s_version_mismatch_nresources_are__d._03d_nlibrary_is__d._03d._03d
push eax
call fcn.004b4789
mov ecx, dword [esp + 0x34]
add esp, 0x20
push ecx
push esi
mov ecx, 0x517ff8
call fcn.00468c70
lea ecx, [esp + 0x14]
mov dword [esp + 0x1050], 0xffffffff
call fcn.004bb422
mov eax, 4
mov ecx, dword [esp + 0x1048]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1044
ret 8