Function at 0x10008c20
Capabilities:
Print debug messages
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1006b5b0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100810f0]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x5c]
mov eax, dword [esi + 0x48]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push bind
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
mov dword [esp + 0x30], edi
cmp edi, ebx
jne 0x10008c82
push 0x1007ac54
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
xor al, al
jmp 0x10008ecb
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.1000a760
mov eax, dword [esi + 0x18]
mov ebp, dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
push ebx
mov dword [esi + 0x1c], ebx
mov dword [eax], eax
mov esi, dword [esi + 0x18]
lea edx, [esp + 0x20]
push edx
push 4
lea eax, [esp + 0x2c]
push eax
mov dword [esi + 8], esi
push edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
call ebp
cmp dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
jle 0x10008ec2
jmp 0x10008cda
mov ebp, dword [sym.imp.KERNEL32.DLL_ReadFile]
xor ebx, ebx
mov edx, dword [0x100829cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x100829cc
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x54], ebx
mov edx, dword [0x100829cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x100829cc
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
push ebx
lea ecx, [esp + 0x20]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x64], 1
push edi
mov dword [esp + 0x2c], ebx
call ebp
mov eax, dword [esp + 0x18]
push eax
call fcn.1004e8b8
mov edx, dword [esp + 0x1c]
add esp, 4
push ebx
lea ecx, [esp + 0x20]
push ecx
push edx
mov esi, eax
push esi
push edi
call ebp
cmp esi, ebx
jne 0x10008d4b
xor eax, eax
jmp 0x10008d5f
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10008d50
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x28]
call fcn.10003ad0
push esi
call fcn.1004fdc6
add esp, 4
push 0
lea eax, [esp + 0x20]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push edi
mov dword [esp + 0x2c], 0
call ebp
mov edx, dword [esp + 0x18]
push edx
call fcn.1004e8b8
mov ecx, dword [esp + 0x1c]
add esp, 4
push 0
mov esi, eax
lea eax, [esp + 0x20]
push eax
push ecx
push esi
push edi
call ebp
test esi, esi
jne 0x10008db4
xor eax, eax
jmp 0x10008dcf
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10008dc0
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x2c]
call fcn.10003ad0
push esi
call fcn.1004fdc6
mov edi, dword [esp + 0x28]
add edi, 0xfffffff0
add esp, 4
mov eax, edi
call fcn.10003bd0
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x54], 2
mov esi, dword [esp + 0x28]
add esi, 0xfffffff0
mov eax, esi
call fcn.10003bd0
lea ebp, [eax + 0x10]
mov dword [esp + 0x38], ebp
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x34]
push edx
push eax
lea ebx, [esp + 0x44]
mov byte [esp + 0x5c], 3
call fcn.10009de0
lea eax, [ebp - 0x10]
mov byte [esp + 0x54], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10008e4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10008e6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x54], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10008e8a
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [esp + 0x54], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10008eab
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
jl 0x10008cd2
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4