Function at 0x1009b98
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x1015ab4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x244]
push eax
push ebx
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x230], edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 0x238], eax
jne 0x1009c28
lea eax, [ebp - 0x240]
push eax
push ebx
call fcn.0100cbb4
test eax, eax
pop ecx
pop ecx
je 0x1009e97
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0x234]
mov dword [ecx], eax
mov eax, dword [ebp - 0x220]
and dword [eax], 0
jmp 0x1009e97
and dword [esi], 0
and dword [edi], 0
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 0x224], esi
jne 0x1009c60
push ebx
push 0x1001850
push 0x10032dc
push dword [ebp - 0x218]
call fcn.01008d19
add esp, 0x10
jmp 0x1009e86
push esi
push dword [ebp - 0x238]
push dword [ebp - 0x244]
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x1009c9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
push 0x10018b0
push 0x10032b0
push dword [ebp - 0x218]
call fcn.01008d19
add esp, 0x14
jmp 0x1009e79
push dword [ebp - 0x218]
lea eax, [ebp - 0x250]
push ebx
push eax
lea eax, [ebp - 0x24c]
push eax
push 0x10032ac
push esi
call fcn.01009b0f
test eax, eax
je 0x1009cdc
mov eax, dword [ebp - 0x24c]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x234]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x220]
mov dword [ecx], eax
push dword [ebp - 0x218]
lea eax, [ebp - 0x228]
push ebx
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x1003290
push esi
call fcn.01009b0f
test eax, eax
je 0x1009e8a
mov eax, dword [ebp - 0x21c]
mov edi, dword [eax]
movzx eax, di
push eax
push 0x1002a6c
mov dword [ebp - 0x220], eax
mov esi, 0x100
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.01009308
add esp, 0x10
jmp 0x1009d6f
mov eax, dword [ebp - 0x21c]
movzx eax, word [eax]
push eax
push 0x100328c
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.01009308
add esp, 0x10
test eax, eax
jl 0x1009d7f
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.01004a18
test eax, eax
jl 0x1009d7f
sub dword [ebp - 0x228], 4
add dword [ebp - 0x21c], 4
cmp dword [ebp - 0x228], 4
ja 0x1009d32
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.msvcrt.dll__strdup]
test eax, eax
pop ecx
mov ecx, dword [ebp - 0x230]
mov dword [ecx], eax
jne 0x1009da9
push ebx
push 0x1001850
push 0x1003254
jmp 0x1009e6b
push dword [ebp - 0x220]
shr edi, 0x10
push edi
mov dword [ebp - 0x230], edi
mov edi, 0x100322c
push edi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.01009308
add esp, 0x14
push dword [ebp - 0x218]
lea eax, [ebp - 0x23c]
push ebx
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x224]
call fcn.01009b0f
test eax, eax
jne 0x1009e3e
push dword [ebp - 0x230]
lea eax, [ebp - 0x114]
push dword [ebp - 0x220]
push edi
push esi
push eax
call fcn.01009308
add esp, 0x14
push dword [ebp - 0x218]
lea eax, [ebp - 0x23c]
push ebx
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x224]
call fcn.01009b0f
cmp dword [ebp - 0x22c], 0
je 0x1009e8a
push dword [ebp - 0x22c]
call dword [sym.imp.msvcrt.dll__strdup]
test eax, eax
pop ecx
mov ecx, dword [ebp - 0x248]
mov dword [ecx], eax
jne 0x1009e8a
push ebx
push 0x1001850
push 0x10031f4
push dword [ebp - 0x218]
call fcn.01008d19
add esp, 0x10
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
jmp 0x1009e9a
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100d415
leave
ret 0x18