Function at 0x413990
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e166
mov eax, dword fs:[0]
push eax
sub esp, 0x868
mov eax, dword [0x5b7de4]
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 edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x854], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x860], ebx
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x858], eax
mov eax, edi
mov dword [ebp - 0x870], ebx
mov dword [ebp - 0x85c], 0
mov dword [ebp - 0x864], 0
jb 0x413a00
mov eax, dword [edi]
lea ecx, [ebp - 0x864]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
mov dword [ebp - 0x850], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x858]
mov dword [eax], 0
test esi, esi
je 0x413ccf
push esi
call fcn.0051899f
mov esi, eax
add esp, 4
mov dword [ebp - 0x874], esi
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x413a4f
mov edi, dword [edi]
push esi
push dword [ebp - 0x850]
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x413cbd
lea eax, [ebp - 0x868]
mov dword [ebp - 0x868], 0
push eax
lea eax, [ebp - 0x86c]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x413cbd
mov eax, dword [ebp - 0x86c]
xorps xmm0, xmm0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
movq qword [ebp - 0x1c], xmm0
mov byte [ebp - 0x14], 0
mov eax, dword [eax]
rol eax, 0x10
push eax
lea eax, [ebp - 0x1c]
push str._08X
push eax
call edi
push 0x800
lea eax, [ebp - 0x81c]
push 0
push eax
call fcn.00530cf0
push dword [ebp - 0x854]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x81c]
push str.StringFileInfo_s_s
push eax
call edi
add esp, 0x28
mov dword [ebp - 0x850], 0
lea eax, [ebp - 0x860]
mov dword [ebp - 0x860], 0
push eax
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x81c]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x413cbd
push dword [ebp - 0x850]
lea ecx, [ebp - 0x834]
call fcn.0040fba0
cmp dword [ebp - 0x820], 0x10
lea ecx, [ebp - 0x834]
mov ebx, dword [ebp - 0x824]
lea edi, [ebp - 0x834]
cmovae ecx, dword [ebp - 0x834]
add ecx, ebx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x820], 0x10
mov edx, ecx
cmovae edi, dword [ebp - 0x834]
xor eax, eax
sub edx, edi
cmp edi, ecx
cmova edx, eax
test edx, edx
je 0x413b87
cmp byte [edi], 0x2c
jne 0x413b7b
mov byte [edi], 0x2e
inc eax
inc edi
cmp eax, edx
jne 0x413b73
mov ebx, dword [ebp - 0x824]
cmp dword [ebp - 0x820], 0x10
lea edi, [ebp - 0x834]
cmovae edi, dword [ebp - 0x834]
test ebx, ebx
je 0x413bf8
push ebx
push 0x2e
push edi
call fcn.00530c40
add esp, 0xc
test eax, eax
je 0x413bf8
sub eax, edi
cmp eax, 0xffffffff
je 0x413bf8
push eax
push 0
lea eax, [ebp - 0x84c]
push eax
lea ecx, [ebp - 0x834]
call fcn.0040e050
mov dword [ebp - 0x85c], 1
cmp dword [eax + 0x14], 0x10
jb 0x413bdd
mov eax, dword [eax]
push eax
call fcn.0053eae2
mov ebx, dword [ebp - 0x824]
add esp, 4
cmp eax, 5
jne 0x413bf8
mov eax, 1
jmp 0x413bfa
xor eax, eax
test byte [ebp - 0x85c], 1
mov edi, dword [ebp - 0x858]
mov dword [edi], eax
je 0x413c1e
lea ecx, [ebp - 0x84c]
call fcn.00408f00
mov eax, dword [edi]
mov ebx, dword [ebp - 0x824]
test eax, eax
jne 0x413c8d
cmp dword [ebp - 0x820], 0x10
lea edx, [ebp - 0x834]
cmovae edx, dword [ebp - 0x834]
test ebx, ebx
je 0x413c8d
or ecx, 0xffffffff
lea eax, [ebx - 1]
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x2e
je 0x413c5a
nop dword [eax]
cmp ecx, edx
je 0x413c8d
dec ecx
cmp byte [ecx], 0x2e
jne 0x413c50
sub ecx, edx
cmp ecx, 0xffffffff
je 0x413c8d
push ecx
push 0
lea eax, [ebp - 0x84c]
push eax
lea ecx, [ebp - 0x834]
call fcn.0040e050
push eax
lea ecx, [ebp - 0x834]
call fcn.00409050
lea ecx, [ebp - 0x84c]
call fcn.00408f00
mov ecx, dword [ebp - 0x870]
lea eax, [ebp - 0x834]
push eax
call fcn.0040fb60
lea ecx, [ebp - 0x834]
call fcn.00408f00
push 1
push esi
call fcn.005189ee
mov eax, dword [ebp - 0x870]
add esp, 8
jmp 0x413cf0
push 1
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.005189ee
add esp, 8
push 0
mov dword [ebx + 0x10], 0
mov ecx, ebx
mov dword [ebx + 0x14], 0xf
push 0x5707b4
mov byte [ebx], 0
call fcn.0040a4a0
mov eax, ebx
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.005189ad
mov esp, ebp
pop ebp
ret