Function at 0x413f20
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a17c
mov eax, dword fs:[0]
push eax
sub esp, 0x48c
mov eax, dword [0x461008]
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
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4141cd
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x4141cd
push 1
push esi
call fcn.0042e909
mov edi, eax
add esp, 8
test edi, edi
je 0x4141cd
push edi
push esi
push dword [ebp - 0x478]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4141c4
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x46c], 0
push eax
push str.VarFileInfoTranslation
push edi
call esi
mov ecx, dword [ebp - 0x46c]
push 0x457d74
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_ls
push 0x104
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0042d0a3
add esp, 0x1c
mov dword [ebp - 0x470], 0
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x420]
push eax
push edi
call esi
test eax, eax
je 0x4141c4
mov eax, dword [ebp - 0x470]
test eax, eax
je 0x4141c4
push eax
lea ecx, [ebp - 0x468]
call fcn.00401c13
lea edx, [ebp - 0x468]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.00420a50
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x47c], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 0x10
lea ecx, [ebp - 0x450]
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.00401de0
lea edx, [ebp - 0x484]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x450]
call fcn.00413e20
cmp dword [ebp - 0x43c], 0x10
jb 0x4140e8
push dword [ebp - 0x450]
call fcn.0042d790
add esp, 4
mov eax, dword [ebp - 0x480]
xorps xmm0, xmm0
mov esi, dword [ebp - 0x484]
sub eax, esi
and eax, 0xfffffffe
movlpd qword [ebp - 0x490], xmm0
cmp eax, 8
jne 0x414149
movzx eax, word [esi + 2]
cdq
mov ebx, eax
mov ecx, edx
movzx eax, word [esi]
cdq
shld edx, eax, 0x10
shl eax, 0x10
or ecx, edx
or ebx, eax
movzx eax, word [esi + 4]
shld ecx, ebx, 0x10
cdq
shl ebx, 0x10
or ecx, edx
or ebx, eax
movzx eax, word [esi + 6]
shld ecx, ebx, 0x10
cdq
shl ebx, 0x10
or ebx, eax
or ecx, edx
mov dword [ebp - 0x474], ecx
jmp 0x41415b
mov eax, dword [ebp - 0x48c]
mov ebx, dword [ebp - 0x490]
mov dword [ebp - 0x474], eax
push edi
call fcn.0042d790
add esp, 4
test esi, esi
je 0x414171
push esi
call fcn.0042d790
add esp, 4
cmp dword [ebp - 0x424], 0x10
jb 0x414188
push dword [ebp - 0x438]
call fcn.0042d790
add esp, 4
cmp dword [ebp - 0x454], 8
mov dword [ebp - 0x424], 0xf
mov dword [ebp - 0x428], 0
mov byte [ebp - 0x438], 0
jb 0x4141ba
push dword [ebp - 0x468]
call fcn.0042d790
add esp, 4
mov edx, dword [ebp - 0x474]
mov eax, ebx
jmp 0x4141d1
push edi
call fcn.0042d790
add esp, 4
xor eax, eax
xor edx, edx
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.0042cfd6
mov esp, ebp
pop ebp
ret