Function at 0x5aed30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d5768
mov eax, dword fs:[0]
push eax
sub esp, 0x838
mov eax, dword [0x638fe4]
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 ebx, ecx
lea eax, [ebp - 0x830]
mov dword [ebp - 0x830], 0
push eax
push dword [ebx]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x5aed96
mov byte [ebp - 0x811], al
lea eax, [ebp - 0x811]
push 0x62e4c8
push eax
call fcn.005479aa
lea eax, [esi + 2]
push eax
lea ecx, [ebp - 0x844]
call fcn.0040cdc0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x844]
push edi
push esi
push 0
push dword [ebx]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x5aedd9
mov byte [ebp - 0x811], al
lea eax, [ebp - 0x811]
push 0x62e4c8
push eax
call fcn.005479aa
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x820], 0
push 0
push eax
mov dword [ebp - 0x81c], 0
call fcn.00547850
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x820]
add esp, 0xc
push eax
lea eax, [ebp - 0x81c]
push eax
push str.VarFileInfoTranslation
push edi
call esi
test eax, eax
jne 0x5aee3a
mov byte [ebp - 0x811], al
lea eax, [ebp - 0x811]
push 0x62e4c8
push eax
call fcn.005479aa
mov ecx, dword [ebp - 0x81c]
push 0x610610
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.004094f0
add esp, 0x18
mov dword [ebp - 0x824], 0
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x810]
push eax
push edi
call esi
test eax, eax
jne 0x5aeea4
mov byte [ebp - 0x811], al
lea eax, [ebp - 0x811]
push 0x62e4c8
push eax
call fcn.005479aa
push dword [ebp - 0x824]
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x828], 0
call fcn.00403280
lea ecx, [ebp - 0x818]
mov dword [ebp - 0x834], 0
call fcn.00402be0
mov byte [ebp - 4], 2
xor ebx, ebx
mov esi, dword [ebp - 0x818]
lea eax, [ebp - 0x834]
push eax
push 0x610640
lea eax, [ebp - 0x838]
push eax
lea ecx, [ebp - 0x82c]
call fcn.0040ce60
mov byte [ebp - 4], 3
lea edi, [esi - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x5aef4c
cmp dword [edi + 0xc], 0
jl 0x5aef37
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x5aef37
push ecx
call fcn.004035b0
add esp, 4
mov ecx, edi
mov esi, eax
call fcn.00402670
add esi, 0x10
mov dword [ebp - 0x818], esi
jmp 0x5aef4c
push dword [edx - 0xc]
lea ecx, [ebp - 0x818]
push edx
call fcn.00403620
mov esi, dword [ebp - 0x818]
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0x838]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5aef95
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5aef91
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5aef91
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5aef95
mov ecx, edx
call edi
push 0xa
push 0
push esi
call fcn.0054dcdb
mov edi, dword [ebp - 0x828]
mov ecx, 0x18
sub ecx, ebx
movzx eax, al
shl eax, cl
add esp, 0xc
or edi, eax
add ebx, 8
cmp dword [esi - 0xc], 0
mov dword [ebp - 0x828], edi
jne 0x5aeee0
cmp ebx, 0x18
jl 0x5aeee0
lea ecx, [ebp - 0x818]
call fcn.00402b90
lea ecx, [ebp - 0x82c]
call fcn.00402b90
lea ecx, [ebp - 0x844]
call fcn.00408c70
mov eax, edi
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.00544774
mov esp, ebp
pop ebp
ret