Function at 0x476190
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3740
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x4f4164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0xf
mov byte [ebp - 0x160], 0
push 0x104
lea eax, [ebp - 0x144]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00495790
add esp, 0xc
lea eax, [ebp - 0x144]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x47644d
cmp eax, 0x103
ja 0x47644d
push 0
lea eax, [ebp - 0x144]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x476432
push 0x4d197c
push edi
call fcn.00450e5d
add esp, 8
mov dword [ebp - 0x168], eax
test eax, eax
je 0x476432
push eax
push edi
push 0
lea eax, [ebp - 0x144]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
mov edi, dword [ebp - 0x168]
test eax, eax
je 0x476429
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x164]
push eax
push 0x4d38e8
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x476429
cmp dword [ebp - 0x148], 0
je 0x476429
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x168], eax
cmp dword [eax], 0xfeef04bd
jne 0x476429
push 0xa
xorps xmm0, xmm0
mov word [ebp - 0x14], 0
push 0xa
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
movzx eax, word [eax + 0xa]
push ecx
push eax
call fcn.004a98de
push 0xa
push 0xa
lea eax, [ebp - 0x28]
mov word [ebp - 0x20], 0
push eax
mov eax, dword [ebp - 0x168]
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
movzx eax, word [eax + 8]
push eax
call fcn.004a98de
push 0xa
push 0xa
lea eax, [ebp - 0x34]
mov word [ebp - 0x2c], 0
push eax
mov eax, dword [ebp - 0x168]
xorps xmm0, xmm0
movq qword [ebp - 0x34], xmm0
movzx eax, word [eax + 0xe]
push eax
call fcn.004a98de
push 0xa
push 0xa
lea eax, [ebp - 0x40]
mov word [ebp - 0x38], 0
push eax
mov eax, dword [ebp - 0x168]
xorps xmm0, xmm0
movq qword [ebp - 0x40], xmm0
movzx eax, word [eax + 0xc]
push eax
call fcn.004a98de
lea ecx, [ebp - 0x1c]
add esp, 0x40
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x476380
sub ecx, edx
lea eax, [ebp - 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x160]
call fcn.0042bc20
push 0x2e
lea ecx, [ebp - 0x160]
call fcn.00432b40
lea ecx, [ebp - 0x28]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4763b0
sub ecx, edx
lea eax, [ebp - 0x28]
push ecx
push eax
lea ecx, [ebp - 0x160]
call fcn.0042bc20
push 0x2e
lea ecx, [ebp - 0x160]
call fcn.00432b40
lea ecx, [ebp - 0x34]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4763e0
sub ecx, edx
lea eax, [ebp - 0x34]
push ecx
push eax
lea ecx, [ebp - 0x160]
call fcn.0042bc20
push 0x2e
lea ecx, [ebp - 0x160]
call fcn.00432b40
lea ecx, [ebp - 0x40]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x476410
sub ecx, edx
lea eax, [ebp - 0x40]
push ecx
push eax
lea ecx, [ebp - 0x160]
call fcn.0042bc20
push edi
call fcn.00450e58
add esp, 4
lea eax, [ebp - 0x160]
mov ecx, esi
push eax
call fcn.00409570
lea ecx, [ebp - 0x160]
call fcn.004094a0
jmp 0x476478
movups xmm0, xmmword [ebp - 0x160]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x150]
movq qword [esi + 0x10], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450df0
mov esp, ebp
pop ebp
ret