Function at 0x536a30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae676
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x608554]
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 eax, edx
mov dword [ebp - 0x154], eax
mov edi, ecx
cmp dword [edi + 0x10], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x158], ecx
je 0x536d1d
cmp dword [eax + 0x10], 0
je 0x536d1d
test ecx, ecx
je 0x536d1d
push str.GetFileVersionHelper_____Start
call fcn.0054c5b0
add esp, 4
xor ebx, ebx
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x536aa6
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x148], eax
test eax, eax
je 0x536d03
push ecx
lea ecx, [ebp - 0x141]
mov byte [ebp - 0x141], bl
push ecx
push eax
lea ecx, [ebp - 0x164]
call fcn.005362c0
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
jb 0x536ae6
mov edi, dword [edi]
mov esi, dword [ebp - 0x164]
push esi
push dword [ebp - 0x148]
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x536cc9
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x14c], 0
push eax
push str.VarFileInfoTranslation
push esi
mov dword [ebp - 0x150], 0
call edi
test eax, eax
je 0x536cc2
mov eax, dword [ebp - 0x14c]
and eax, 0xfffffffc
cmp eax, 4
jb 0x536cd1
push 0x5c6930
lea ecx, [ebp - 0x128]
call fcn.00402ed0
push 0x100
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00571c00
mov ecx, dword [ebp - 0x150]
add esp, 0xc
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.0041e030
add esp, 0x14
lea edx, [ebp - 0x110]
lea ecx, [ebp - 0x140]
push dword [ebp - 0x154]
call fcn.00456d70
add esp, 4
lea ecx, [ebp - 0x128]
push eax
call fcn.00406630
mov edx, dword [ebp - 0x12c]
cmp edx, 8
jb 0x536c06
mov ecx, dword [ebp - 0x140]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x536bfc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x536d3e
push edx
push ecx
call fcn.0056deb6
add esp, 8
cmp dword [ebp - 0x114], 8
lea ecx, [ebp - 0x14c]
push ecx
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x148], 0
lea eax, [ebp - 0x128]
cmovae eax, dword [ebp - 0x128]
push ecx
push eax
push esi
call edi
mov edx, dword [ebp - 0x148]
test edx, edx
je 0x536c7b
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x536c45
sub ecx, edi
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x104
ja 0x536c74
push edx
push 0x104
push dword [ebp - 0x158]
call fcn.005746e6
add esp, 0xc
jmp 0x536c80
mov ebx, 0x7a
jmp 0x536c80
mov ebx, 0x54f
mov edx, dword [ebp - 0x114]
cmp edx, 8
jb 0x536cd1
mov ecx, dword [ebp - 0x128]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x536cb6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x536d43
push edx
push ecx
call fcn.0056deb6
add esp, 8
jmp 0x536cd1
mov ebx, 0x54f
jmp 0x536cd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x536d0b
mov ecx, dword [ebp - 0x15c]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x536cf7
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x536d48
push ecx
push esi
call fcn.0056deb6
add esp, 8
jmp 0x536d0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.GetFileVersionHelper_____End:_d
call fcn.0054c5b0
add esp, 8
mov eax, ebx
jmp 0x536d22
mov eax, 0x57
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.0056d977
mov esp, ebp
pop ebp
ret
call fcn.00574908
call fcn.00574908
call fcn.00574908
int3