Function at 0x10021eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a1b7
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x100a11a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
je 0x10021ee8
cmp dword [ebp + 0xc], 0
jne 0x10021eef
xor eax, eax
jmp 0x100224b8
push 0x104
lea ecx, [ebp - 0x160]
call fcn.100062d0
push 0xfde9
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x160]
call fcn.100086f0
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x160]
call fcn.100034b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0xffffffff
jne 0x10021f71
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.100087a0
mov eax, dword [ebp - 0x1b8]
jmp 0x100224b8
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x1c0], esp
lea ecx, [ebp - 0x164]
push ecx
lea ecx, [ebp - 0x1c4]
call fcn.10002ea0
mov edx, dword [eax]
push edx
mov ecx, esi
call fcn.100219f0
lea ecx, [ebp - 0x5c]
call fcn.10021cd0
mov dword [ebp - 0x1c8], eax
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
mov dword [ebp - 0x34], 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0xd
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
jne 0x1002201b
mov dword [ebp - 0x1b4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.10021db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.100087a0
mov eax, dword [ebp - 0x1b4]
jmp 0x100224b8
mov dword [ebp - 0x174], str.version_1.0.0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x170], ecx
mov edx, dword [ebp - 0x170]
mov al, byte [edx]
mov byte [ebp - 0x166], al
mov ecx, dword [ebp - 0x174]
cmp al, byte [ecx]
jne 0x1002208c
cmp byte [ebp - 0x166], 0
je 0x10022080
mov edx, dword [ebp - 0x170]
mov al, byte [edx + 1]
mov byte [ebp - 0x167], al
mov ecx, dword [ebp - 0x174]
cmp al, byte [ecx + 1]
jne 0x1002208c
add dword [ebp - 0x170], 2
add dword [ebp - 0x174], 2
cmp byte [ebp - 0x167], 0
jne 0x1002202e
mov dword [ebp - 0x184], 0
jmp 0x10022097
sbb edx, edx
or edx, 1
mov dword [ebp - 0x184], edx
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0
je 0x100220df
mov dword [ebp - 0x1bc], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.10021db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.100087a0
mov eax, dword [ebp - 0x1bc]
jmp 0x100224b8
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
push 0
lea edx, [ebp - 0x34]
push edx
push 8
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + eax - 0x28]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x17c], eax
mov edx, 4
shl edx, 0
mov eax, dword [ebp + edx - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x1cc], eax
push 4
lea ecx, [ebp - 0x2c]
call fcn.100062d0
push 0x100a5358
mov ecx, dword [ebp - 0x17c]
add ecx, 1
push ecx
call fcn.10037197
add esp, 8
mov dword [ebp - 0x190], eax
mov edx, dword [ebp - 0x190]
push edx
lea ecx, [ebp - 0x2c]
call fcn.10008f20
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10021e00
mov byte [eax], 0
lea ecx, [ebp - 0x2c]
call fcn.10021e20
movzx ecx, al
test ecx, ecx
jne 0x100221cc
mov dword [ebp - 0x194], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10021d70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.10021db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.100087a0
mov eax, dword [ebp - 0x194]
jmp 0x100224b8
push 0
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000ab80
push eax
mov ecx, dword [ebp - 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
jne 0x1002223d
mov dword [ebp - 0x198], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10021d70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.10021db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.100087a0
mov eax, dword [ebp - 0x198]
jmp 0x100224b8
lea ecx, [ebp - 0x160]
call fcn.100034b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x19c], eax
push str._vip
mov edx, dword [ebp - 0x19c]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x10022274
mov byte [ebp - 0x165], 1
jmp 0x1002227b
mov byte [ebp - 0x165], 0
mov al, byte [ebp - 0x165]
mov byte [ebp - 0x175], al
mov dword [ebp - 0x30], 0
push 0x10086484
lea ecx, [ebp - 0x1fc]
call fcn.100080b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.1000ab80
push eax
lea ecx, [ebp - 0x1e4]
call fcn.100080b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x1fc]
push edx
lea eax, [ebp - 0x1e4]
push eax
call fcn.10008ca0
add esp, 0xc
test eax, eax
jne 0x100222e4
mov dword [ebp - 0x188], 1
jmp 0x100222ee
mov dword [ebp - 0x188], 0
mov cl, byte [ebp - 0x188]
mov byte [ebp - 0x168], cl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1e4]
call fcn.10008120
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1fc]
call fcn.10008120
movzx edx, byte [ebp - 0x168]
test edx, edx
je 0x10022362
mov dword [ebp - 0x1a0], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10021d70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.10021db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.100087a0
mov eax, dword [ebp - 0x1a0]
jmp 0x100224b8
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0x10]
jle 0x100223a9
mov dword [ebp - 0x1a4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10021d70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.10021db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.100087a0
mov eax, dword [ebp - 0x1a4]
jmp 0x100224b8
push str.46C39CC1_022B_49a9_BD64_AE6C63679C89
lea ecx, [ebp - 0x22c]
call fcn.100080b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.1000ab80
push eax
lea ecx, [ebp - 0x214]
call fcn.100080b0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x214]
push ecx
call fcn.10008800
add esp, 0x10
test eax, eax
jne 0x10022403
mov dword [ebp - 0x18c], 1
jmp 0x1002240d
mov dword [ebp - 0x18c], 0
mov dl, byte [ebp - 0x18c]
mov byte [ebp - 0x169], dl
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x214]
call fcn.10008120
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x22c]
call fcn.10008120
movzx eax, byte [ebp - 0x169]
test eax, eax
je 0x1002247e
mov dword [ebp - 0x1a8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10021d70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.10021db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.100087a0
mov eax, dword [ebp - 0x1a8]
jmp 0x100224b8
mov dword [ebp - 0x1ac], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10021d70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.10021db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.100087a0
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10036c51
mov esp, ebp
pop ebp
ret 0xc