Function at 0x10061a08
Capabilities:
Extract resource via kernel32 functions
Get file version info
Read file on windows

Disassembly:
push 0x430
mov eax, 0x1008986b
call fcn.10063fad
mov ebx, ecx
mov dword [ebp - 0x438], ebx
mov eax, dword [ebx + 0xc]
xor ecx, ecx
mov esi, ecx
test eax, eax
je 0x10061cfa
cmp word [eax], cx
je 0x10061cfa
mov eax, dword [0x100a08e4]
test al, 1
jne 0x10061a62
or eax, 1
mov dword [0x100a08e4], eax
mov dword [ebp - 4], ecx
call fcn.1007f185
test eax, eax
setne al
or dword [ebp - 4], 0xffffffff
mov byte [0x100a08e0], al
xor ecx, ecx
jmp 0x10061a67
mov al, byte [0x100a08e0]
test al, al
je 0x10061a7e
push 0x22
push ecx
push dword [ebx + 0xc]
call fcn.1007f185
mov dword [ebp - 0x434], eax
jmp 0x10061aaf
push ecx
push dword [ebx + 0xc]
call fcn.1007f185
mov edi, eax
test edi, edi
je 0x10061cfa
push 0x22
xor eax, eax
push eax
push edi
call fcn.1007f185
push edi
mov dword [ebp - 0x434], eax
call fcn.1007f185
mov eax, dword [ebp - 0x434]
pop ecx
test eax, eax
je 0x10061f24
xor ecx, ecx
mov edi, ecx
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x43c], ecx
cmp byte [0x100a08e0], cl
je 0x10061b5f
push 0x10
push 1
push eax
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x10061f13
push eax
push dword [ebp - 0x434]
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x10061f13
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x10061f13
movzx eax, word [eax]
add eax, eax
mov dword [ebp - 0x424], eax
add eax, 4
call fcn.10064635
mov edi, esp
mov dword [ebp - 0x430], edi
test edi, edi
jne 0x10061b39
mov esi, 0x80004005
jmp 0x10061f13
push dword [ebp - 0x424]
push dword [ebp - 0x428]
push edi
call fcn.1007f185
mov eax, dword [ebp - 0x424]
add esp, 0xc
shr eax, 1
mov dword [eax + edi], 0x58324546
jmp 0x10061bc9
push ecx
push dword [ebx + 0xc]
call fcn.1007f185
mov dword [ebp - 0x424], eax
test eax, eax
je 0x10061bc4
lea ecx, [ebp - 0x43c]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x428], eax
test eax, eax
je 0x10061bb6
call fcn.10064635
mov edi, esp
mov dword [ebp - 0x430], edi
test edi, edi
jne 0x10061ba1
mov esi, 0x80004005
jmp 0x10061bb6
push edi
push dword [ebp - 0x428]
xor eax, eax
push eax
push dword [ebp - 0x424]
call sub.VERSION.dll_GetFileVersionInfoA
push dword [ebp - 0x424]
call fcn.1007f185
pop ecx
jmp 0x10061bc9
mov esi, 0x80004005
test edi, edi
je 0x10061f13
test esi, esi
js 0x10061f13
xor eax, eax
cmp byte [0x100a08e0], al
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
push eax
je 0x10061dae
push 0x10006924
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10061cee
mov eax, dword [ebp - 0x42c]
movzx ecx, word [eax]
movzx eax, word [eax + 2]
push eax
push ecx
push 0x10006958
mov esi, 0x104
lea eax, [ebp - 0x420]
push esi
push eax
mov word [ebx + 0x1c], cx
call fcn.1007f185
add esp, 0x14
test eax, eax
js 0x10061cee
lea eax, [ebp - 0x420]
push eax
push 0x1000696c
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.1007f185
add esp, 0x10
test eax, eax
js 0x10061cee
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10061cee
mov eax, dword [ebp - 0x42c]
lea edi, [eax + 0x10]
movzx esi, word [edi]
xor ecx, ecx
mov word [edi], cx
mov dword [ebp - 0x424], ecx
push 0x10
lea ecx, [ebp - 0x424]
push ecx
push eax
call fcn.1007f185
mov dword [ebx + 0x18], eax
push 0x10
lea eax, [ebp - 0x424]
push eax
push edi
mov word [edi], si
call fcn.1007f185
mov dword [ebx + 0x14], eax
lea eax, [ebp - 0x420]
push eax
push 0x100069a4
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.1007f185
add esp, 0x28
test eax, eax
jns 0x10061d0b
push dword [ebp - 0x434]
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, 0x80004005
lea esp, [ebp - 0x44c]
call fcn.10064030
ret
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x430]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10061cee
mov eax, dword [ebp - 0x42c]
push 4
mov ecx, 0x100069e0
pop edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10061d63
test dx, dx
je 0x10061d5d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10061d63
add eax, edi
add ecx, edi
test dx, dx
jne 0x10061d3d
xor esi, esi
mov eax, esi
jmp 0x10061d6a
sbb eax, eax
sbb eax, 0xffffffff
xor esi, esi
test eax, eax
je 0x10061cee
push 0xa
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x42c]
call fcn.1007f185
add esp, 0xc
mov dword [ebx + 0x20], eax
test eax, eax
js 0x10061cee
lea ecx, [eax + 1]
mov eax, ecx
mov dword [ebx + 0x20], ecx
and eax, 0x8000001f
jns 0x10061da4
dec eax
or eax, 0xffffffe0
inc eax
sub ecx, eax
add ecx, 0x20
jmp 0x10061f10
push 0x10001cb8
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10061cee
mov eax, dword [ebp - 0x42c]
movzx ecx, word [eax]
movzx eax, word [eax + 2]
push eax
push ecx
mov word [ebx + 0x1c], cx
push 0x100069e8
mov ebx, 0x104
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.1007f185
lea eax, [ebp - 0x114]
push eax
push 0x100069f4
lea eax, [ebp - 0x31c]
push ebx
push eax
call fcn.1007f185
add esp, 0x24
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x31c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10061cee
mov eax, dword [ebp - 0x42c]
lea esi, [eax + 8]
mov bl, byte [esi]
xor ecx, ecx
mov byte [esi], cl
mov dword [ebp - 0x424], ecx
push 0x10
lea ecx, [ebp - 0x424]
push ecx
push eax
call fcn.1007f185
mov ecx, dword [ebp - 0x438]
mov dword [ecx + 0x18], eax
push 0x10
lea eax, [ebp - 0x424]
push eax
push esi
mov byte [esi], bl
call fcn.1007f185
mov ebx, dword [ebp - 0x438]
mov dword [ebx + 0x14], eax
lea eax, [ebp - 0x114]
push eax
push 0x10006a10
lea eax, [ebp - 0x31c]
push 0x104
push eax
call fcn.1007f185
add esp, 0x28
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x31c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10061cee
push 4
push 0x10006a30
push dword [ebp - 0x42c]
call fcn.1007f185
add esp, 0xc
test eax, eax
je 0x10061cee
push 0xa
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x42c]
call fcn.1007f185
add esp, 0xc
mov dword [ebx + 0x20], eax
test eax, eax
js 0x10061cee
lea ecx, [eax + 1]
mov eax, ecx
mov dword [ebx + 0x20], ecx
and eax, 0x8000001f
jns 0x10061f07
dec eax
or eax, 0xffffffe0
inc eax
sub ecx, eax
add ecx, 0x20
xor eax, eax
mov esi, eax
mov dword [ebx + 0x24], ecx
push dword [ebp - 0x434]
call dword [sym.imp.kernel32.dll_FreeLibrary]
jmp 0x10061ff9
xor eax, eax
push eax
push eax
push 3
push eax
push 1
push SysReAllocStringLen
push dword [ebx + 0xc]
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp - 0x430], eax
cmp eax, 0xffffffff
je 0x10061cfa
xor ecx, ecx
push ecx
push ecx
push 0x4a8
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
xor ecx, ecx
push ecx
lea ecx, [ebp - 0x424]
push ecx
push 4
pop edi
push edi
lea eax, [ebx + 0x20]
push eax
push dword [ebp - 0x430]
call dword [sym.imp.kernel32.dll_ReadFile]
cmp dword [ebp - 0x424], edi
jne 0x10061cfa
xor eax, eax
cmp dword [ebx + 0x20], eax
jl 0x10061cfa
push eax
lea eax, [ebp - 0x424]
push eax
push edi
lea eax, [ebx + 0x14]
push eax
push dword [ebp - 0x430]
call dword [sym.imp.kernel32.dll_ReadFile]
cmp dword [ebp - 0x424], edi
je 0x10061fb5
mov esi, 0x80004005
mov ecx, dword [ebx + 0x20]
xor eax, eax
mov dword [ebx + 0x18], eax
mov eax, ecx
and eax, 0x8000001f
jns 0x10061fcb
dec eax
or eax, 0xffffffe0
inc eax
push dword [ebp - 0x430]
sub ecx, eax
add ecx, 0x20
mov dword [ebx + 0x24], ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
lea eax, [ebx + 0x20]
push 0x10006a34
push eax
call fcn.1007f185
add esp, 0xc
test eax, eax
je 0x10061cfa
test esi, esi
jne 0x1006208c
lea eax, [ebp - 0x218]
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x104
push dword [ebx + 0xc]
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
push 0x2e
push dword [ebp - 0x428]
call fcn.1007f185
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x428]
lea edx, [ecx + 2]
xor edi, edi
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10062048
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1007f185
pop ecx
mov dword [ebx + 0x10], eax
test eax, eax
je 0x10062085
push dword [ebp - 0x428]
push edi
push eax
call fcn.1007f185
mov dword [ebx + 8], 1
mov dword [ebx + 4], 1
mov eax, esi
jmp 0x10061cff