Function at 0x1009fbd
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x1016a90]
xor eax, ebp
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
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x100a04f
lea eax, [ebp - 0x240]
push eax
push ebx
call fcn.0100d14a
pop ecx
pop ecx
test eax, eax
je 0x100a2be
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0x234]
mov dword [ecx], eax
mov eax, dword [ebp - 0x220]
and dword [eax], 0
jmp 0x100a2be
and dword [esi], 0
and dword [edi], 0
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
mov dword [ebp - 0x224], esi
test esi, esi
jne 0x100a087
push ebx
push 0x10018a0
push 0x1003418
push dword [ebp - 0x218]
call fcn.01009022
add esp, 0x10
jmp 0x100a2ad
push esi
push dword [ebp - 0x238]
push dword [ebp - 0x244]
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x100a0c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
push 0x1001900
push 0x10033ec
push dword [ebp - 0x218]
call fcn.01009022
add esp, 0x14
jmp 0x100a2a0
push dword [ebp - 0x218]
lea eax, [ebp - 0x250]
push ebx
push eax
lea eax, [ebp - 0x24c]
push eax
push 0x10033e8
push esi
call fcn.01009f34
test eax, eax
je 0x100a103
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 0x10033cc
push esi
call fcn.01009f34
test eax, eax
je 0x100a2b1
mov eax, dword [ebp - 0x21c]
mov edi, dword [eax]
movzx eax, di
push eax
push 0x1002b80
mov dword [ebp - 0x220], eax
mov esi, 0x100
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.01009508
add esp, 0x10
jmp 0x100a196
mov eax, dword [ebp - 0x21c]
movzx eax, word [eax]
push eax
push 0x10033c8
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.01009508
add esp, 0x10
test eax, eax
jl 0x100a1a6
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.01004b09
test eax, eax
jl 0x100a1a6
sub dword [ebp - 0x228], 4
add dword [ebp - 0x21c], 4
cmp dword [ebp - 0x228], 4
ja 0x100a159
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.msvcrt.dll__strdup]
pop ecx
mov ecx, dword [ebp - 0x230]
mov dword [ecx], eax
test eax, eax
jne 0x100a1d0
push ebx
push 0x10018a0
push 0x1003390
jmp 0x100a292
push dword [ebp - 0x220]
shr edi, 0x10
push edi
mov dword [ebp - 0x230], edi
mov edi, 0x1003368
push edi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.01009508
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.01009f34
test eax, eax
jne 0x100a265
push dword [ebp - 0x230]
lea eax, [ebp - 0x114]
push dword [ebp - 0x220]
push edi
push esi
push eax
call fcn.01009508
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.01009f34
cmp dword [ebp - 0x22c], 0
je 0x100a2b1
push dword [ebp - 0x22c]
call dword [sym.imp.msvcrt.dll__strdup]
pop ecx
mov ecx, dword [ebp - 0x248]
mov dword [ecx], eax
test eax, eax
jne 0x100a2b1
push ebx
push 0x10018a0
push 0x1003330
push dword [ebp - 0x218]
call fcn.01009022
add esp, 0x10
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
jmp 0x100a2c1
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
xor ecx, ebp
pop ebx
call fcn.0100dc5b
leave
ret 0x18