Function at 0x4058d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49989b
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x544070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x14c], 0xf
mov dword [ebp - 0x150], 0
mov byte [ebp - 0x160], 0
push 0x104
lea eax, [ebp - 0x148]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00475260
add esp, 0xc
lea eax, [ebp - 0x148]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x405b41
cmp eax, 0x103
ja 0x405b41
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test ebx, ebx
jne 0x4059ce
lea eax, [ebp - 0x160]
mov ecx, esi
push eax
call fcn.00405850
mov ecx, dword [ebp - 0x14c]
cmp ecx, 0x10
jb 0x405b6d
inc ecx
push ecx
jmp 0x405b5c
push 0x56de00
push ebx
call fcn.0045c065
mov edi, eax
add esp, 8
test edi, edi
je 0x405b41
push edi
push ebx
push dword [ebp - 0x168]
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x405b38
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x164]
push eax
push 0x4b1720
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x405b38
cmp dword [ebp - 0x16c], 0
je 0x405b38
mov ebx, dword [ebp - 0x164]
cmp dword [ebx], 0xfeef04bd
jne 0x405b38
push 0xa
xorps xmm0, xmm0
mov byte [ebp - 0x1c], 0
push 0xa
lea eax, [ebp - 0x1c]
movq qword [ebp - 0x1b], xmm0
push eax
mov byte [ebp - 0x13], 0
movzx eax, word [ebx + 0xa]
push eax
call fcn.0047c2d0
push 0xa
xorps xmm0, xmm0
mov byte [ebp - 0x28], 0
push 0xa
lea eax, [ebp - 0x28]
movq qword [ebp - 0x27], xmm0
push eax
mov byte [ebp - 0x1f], 0
movzx eax, word [ebx + 8]
push eax
call fcn.0047c2d0
push 0xa
xorps xmm0, xmm0
mov byte [ebp - 0x34], 0
push 0xa
lea eax, [ebp - 0x34]
movq qword [ebp - 0x33], xmm0
push eax
mov byte [ebp - 0x2b], 0
movzx eax, word [ebx + 0xe]
push eax
call fcn.0047c2d0
push 0xa
xorps xmm0, xmm0
mov byte [ebp - 0x40], 0
push 0xa
lea eax, [ebp - 0x40]
movq qword [ebp - 0x3f], xmm0
push eax
mov byte [ebp - 0x37], 0
movzx eax, word [ebx + 0xc]
push eax
call fcn.0047c2d0
add esp, 0x40
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x160]
push eax
call fcn.004057a0
push 0x2e
push 1
lea ecx, [ebp - 0x160]
call fcn.004054c0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x160]
call fcn.004057a0
push 0x2e
push 1
lea ecx, [ebp - 0x160]
call fcn.004054c0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x160]
call fcn.004057a0
push 0x2e
push 1
lea ecx, [ebp - 0x160]
call fcn.004054c0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x160]
call fcn.004057a0
push edi
call fcn.0045c060
add esp, 4
lea eax, [ebp - 0x160]
mov ecx, esi
push eax
call fcn.00405850
mov eax, dword [ebp - 0x14c]
cmp eax, 0x10
jb 0x405b6d
inc eax
push eax
push dword [ebp - 0x160]
lea ecx, [ebp - 0x160]
call fcn.00402eb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bdad
mov esp, ebp
pop ebp
ret