Function at 0x459d4c
Capabilities:
Check if file exists
Get file version info
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x574543
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x5c8910]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
mov eax, dword [0x5c8910]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov dword [esp + 0x34], edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [esp + 0x30], eax
test esi, esi
je 0x459f80
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x459f80
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x459f80
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x17]
mov dword [esp + 0x298], ebx
push eax
lea eax, [edi + 1]
mov byte [esp + 0x1b], bl
push eax
lea ecx, [esp + 0x2c]
call fcn.00459af5
push dword [esp + 0x24]
push edi
push dword [esp + 0x24]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x459f71
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], ebx
push eax
push str.VarFileInfoTranslation
push dword [esp + 0x30]
mov dword [esp + 0x48], ebx
call esi
test eax, eax
je 0x459f71
mov ecx, dword [esp + 0x20]
push 0x5a30e0
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_ls
mov eax, 0x104
push eax
push eax
lea eax, [esp + 0x94]
push eax
call fcn.0053755a
add esp, 0x1c
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x84]
push eax
push dword [esp + 0x30]
call esi
test eax, eax
je 0x459f71
cmp dword [esp + 0x18], ebx
je 0x459f71
push dword [esp + 0x18]
lea ecx, [esp + 0x44]
call fcn.00408738
mov esi, 0x59fbc4
mov byte [esp + 0x298], 1
push esi
call fcn.004086f2
pop ecx
push eax
push esi
lea ecx, [esp + 0x48]
call fcn.00409102
xor eax, eax
mov dword [esp + 0x72], ebx
mov word [esp + 0x70], ax
mov esi, ebx
mov word [esp + 0x76], bx
mov edi, ebx
mov ebx, 0x59fbc4
push ebx
call fcn.004086f2
pop ecx
push eax
push esi
push ebx
lea ecx, [esp + 0x4c]
call fcn.0043b15d
mov ebx, eax
cmp ebx, 0xffffffff
je 0x459f60
mov ecx, ebx
lea eax, [esp + 0x58]
sub ecx, esi
push ecx
push esi
push eax
lea ecx, [esp + 0x4c]
call fcn.0043ab18
cmp dword [eax + 0x14], 8
jb 0x459f0f
mov eax, dword [eax]
push eax
call fcn.00536686
pop ecx
push 0
push 1
lea ecx, [esp + 0x60]
mov word [esp + edi*2 + 0x78], ax
call fcn.00403256
inc edi
lea esi, [ebx + 1]
cmp edi, 4
jl 0x459ed4
movzx ecx, word [esp + 0x70]
xor esi, esi
movzx eax, word [esp + 0x72]
shl ecx, 0x10
or ecx, eax
mov eax, dword [esp + 0x34]
mov dword [eax], ecx
movzx ecx, word [esp + 0x76]
movzx eax, word [esp + 0x78]
shl ecx, 0x10
or ecx, eax
mov eax, dword [esp + 0x30]
inc esi
mov dword [eax], ecx
jmp 0x459f62
xor esi, esi
push 0
push 1
lea ecx, [esp + 0x48]
call fcn.00403256
jmp 0x459f73
mov esi, ebx
lea ecx, [esp + 0x24]
call fcn.004090dc
mov eax, esi
jmp 0x459f82
xor eax, eax
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret