Function at 0x471340
Capabilities:
Get file version info

Disassembly:
sub esp, 0x110
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10c], eax
push edi
mov edi, dword [esp + 0x118]
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov eax, dword [edi + 0xf0]
cmp dword [0x57e498], eax
jne 0x4713a6
mov eax, dword [esp + 0x11c]
pop edi
mov eax, dword [eax*4 + 0x57e49c]
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00401033
add esp, 0x110
ret
cmp dword [edi + 0x110], 0
push ebp
mov dword [0x57e498], eax
movzx ebp, ax
je 0x4713f0
cmp ebp, 0x404
jne 0x4713f0
pop ebp
mov dword [0x57e49c], 0x7000404
mov eax, 0x7000404
mov dword [0x57e4a0], 0
pop edi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00401033
add esp, 0x110
ret
push ebx
push esi
cmp eax, 0xe0080404
je 0x471419
cmp eax, 0xe0090404
je 0x471419
cmp eax, 0xe00a0404
je 0x471419
cmp eax, 0xe00b0404
je 0x471419
cmp eax, 0xe00e0804
jne 0x4715a6
push 0xff
lea ecx, [esp + 0x20]
push ecx
push eax
call sub.IMM32.dll_ImmGetIMEFileNameA
test eax, eax
je 0x4715a6
cmp dword [edi + 0xf8], 0
jne 0x4715a6
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [esp + 0x1c]
push 0xffffffffffffffff
push str.TINTLGNT.IME
push 0xffffffffffffffff
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x4714d4
push 0xffffffffffffffff
push str.CINTLGNT.IME
push 0xffffffffffffffff
lea eax, [esp + 0x28]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x4714d4
push 0xffffffffffffffff
push str.MSTCIPHA.IME
push 0xffffffffffffffff
lea eax, [esp + 0x28]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x4714d4
push 0xffffffffffffffff
push str.PINTLGNT.IME
push 0xffffffffffffffff
lea eax, [esp + 0x28]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x4714d4
push 0xffffffffffffffff
push str.MSSCIPYA.IME
push 0xffffffffffffffff
lea eax, [esp + 0x28]
push eax
push 1
push 0x409
call esi
cmp eax, 2
jne 0x4715a6
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4715a6
push ebx
call fcn.00458e00
mov esi, eax
add esp, 4
test esi, esi
je 0x47159d
push esi
push ebx
push dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x47159d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push 0x53eed8
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x47159d
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 8]
movzx ecx, al
and eax, 0xffff0000
shl ecx, 8
or ecx, eax
shl ecx, 8
cmp dword [edi + 0xf8], 0
jne 0x4715f5
cmp ebp, 0x404
jne 0x4715d5
cmp ecx, 0x4020000
je 0x4715f5
cmp ecx, 0x4030000
je 0x4715f5
cmp ecx, 0x4040000
je 0x4715f5
cmp ecx, 0x5000000
je 0x4715f5
cmp ecx, 0x5010000
je 0x4715f5
cmp ecx, 0x5020000
je 0x4715f5
cmp ecx, 0x6000000
je 0x4715f5
push esi
call fcn.00458de0
add esp, 4
mov dword [0x57e4a0], 0
xor eax, eax
mov dword [0x57e49c], 0
mov ecx, dword [esp + 0x11c]
pop esi
pop ebx
pop ebp
pop edi
xor ecx, esp
call fcn.00401033
add esp, 0x110
ret
cmp ebp, 0x804
jne 0x47159d
cmp ecx, 0x4010000
je 0x4715f5
cmp ecx, 0x4020000
je 0x4715f5
cmp ecx, 0x5030000
jne 0x47159d
mov eax, dword [edx + 0xc]
or ecx, ebp
push esi
mov dword [0x57e49c], ecx
mov dword [0x57e4a0], eax
call fcn.00458de0
mov eax, dword [0x57e49c]
add esp, 4
jmp 0x4715bc