Function at 0x470750
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 [0x57f4ac], eax
jne 0x4707b6
mov eax, dword [esp + 0x11c]
pop edi
mov eax, dword [eax*4 + 0x57f4b0]
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00401033
add esp, 0x110
ret
cmp dword [edi + 0x110], 0
push ebp
mov dword [0x57f4ac], eax
movzx ebp, ax
je 0x470800
cmp ebp, 0x404
jne 0x470800
pop ebp
mov dword [0x57f4b0], 0x7000404
mov eax, 0x7000404
mov dword [0x57f4b4], 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 0x470829
cmp eax, 0xe0090404
je 0x470829
cmp eax, 0xe00a0404
je 0x470829
cmp eax, 0xe00b0404
je 0x470829
cmp eax, 0xe00e0804
jne 0x4709b6
push 0xff
lea ecx, [esp + 0x20]
push ecx
push eax
call sub.IMM32.dll_ImmGetIMEFileNameA
test eax, eax
je 0x4709b6
cmp dword [edi + 0xf8], 0
jne 0x4709b6
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 0x4708e4
push 0xffffffffffffffff
push str.CINTLGNT.IME
push 0xffffffffffffffff
lea eax, [esp + 0x28]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x4708e4
push 0xffffffffffffffff
push str.MSTCIPHA.IME
push 0xffffffffffffffff
lea eax, [esp + 0x28]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x4708e4
push 0xffffffffffffffff
push str.PINTLGNT.IME
push 0xffffffffffffffff
lea eax, [esp + 0x28]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x4708e4
push 0xffffffffffffffff
push str.MSSCIPYA.IME
push 0xffffffffffffffff
lea eax, [esp + 0x28]
push eax
push 1
push 0x409
call esi
cmp eax, 2
jne 0x4709b6
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4709b6
push ebx
call fcn.00458270
mov esi, eax
add esp, 4
test esi, esi
je 0x4709ad
push esi
push ebx
push dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4709ad
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push 0x53fab8
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4709ad
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 0x470a05
cmp ebp, 0x404
jne 0x4709e5
cmp ecx, 0x4020000
je 0x470a05
cmp ecx, 0x4030000
je 0x470a05
cmp ecx, 0x4040000
je 0x470a05
cmp ecx, 0x5000000
je 0x470a05
cmp ecx, 0x5010000
je 0x470a05
cmp ecx, 0x5020000
je 0x470a05
cmp ecx, 0x6000000
je 0x470a05
push esi
call fcn.00458250
add esp, 4
mov dword [0x57f4b4], 0
xor eax, eax
mov dword [0x57f4b0], 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 0x4709ad
cmp ecx, 0x4010000
je 0x470a05
cmp ecx, 0x4020000
je 0x470a05
cmp ecx, 0x5030000
jne 0x4709ad
mov eax, dword [edx + 0xc]
or ecx, ebp
push esi
mov dword [0x57f4b0], ecx
mov dword [0x57f4b4], eax
call fcn.00458250
mov eax, dword [0x57f4b0]
add esp, 4
jmp 0x4709cc