Function at 0x100998b
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 0x1009a1b
lea eax, [ebp - 0x240]
push eax
push ebx
call fcn.0100c8c1
test eax, eax
pop ecx
pop ecx
je 0x1009c8a
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0x234]
mov dword [ecx], eax
mov eax, dword [ebp - 0x220]
and dword [eax], 0
jmp 0x1009c8a
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 0x1009a53
push ebx
push 0x1001850
push 0x10032dc
push dword [ebp - 0x218]
call fcn.01008b55
add esp, 0x10
jmp 0x1009c79
push esi
push dword [ebp - 0x238]
push dword [ebp - 0x244]
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x1009a8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
push 0x10018b0
push 0x10032b0
push dword [ebp - 0x218]
call fcn.01008b55
add esp, 0x14
jmp 0x1009c6c
push dword [ebp - 0x218]
lea eax, [ebp - 0x250]
push ebx
push eax
lea eax, [ebp - 0x24c]
push eax
push 0x10032ac
push esi
call fcn.01009902
test eax, eax
je 0x1009acf
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.01009902
test eax, eax
je 0x1009c7d
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.01009144
add esp, 0x10
jmp 0x1009b62
mov eax, dword [ebp - 0x21c]
movzx eax, word [eax]
push eax
push 0x100328c
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.01009144
add esp, 0x10
test eax, eax
jl 0x1009b72
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.01004a08
test eax, eax
jl 0x1009b72
sub dword [ebp - 0x228], 4
add dword [ebp - 0x21c], 4
cmp dword [ebp - 0x228], 4
ja 0x1009b25
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 0x1009b9c
push ebx
push 0x1001850
push 0x1003254
jmp 0x1009c5e
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.01009144
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.01009902
test eax, eax
jne 0x1009c31
push dword [ebp - 0x230]
lea eax, [ebp - 0x114]
push dword [ebp - 0x220]
push edi
push esi
push eax
call fcn.01009144
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.01009902
cmp dword [ebp - 0x22c], 0
je 0x1009c7d
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 0x1009c7d
push ebx
push 0x1001850
push 0x10031f4
push dword [ebp - 0x218]
call fcn.01008b55
add esp, 0x10
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
jmp 0x1009c8d
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.0100d125
leave
ret 0x18