Function at 0x1000a390
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10111750
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x102ac760]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x102ac760]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [esp + 0x94]
mov ebp, dword [esp + 0x90]
mov edi, edx
mov edx, dword [0x102b0b9c]
mov esi, ecx
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x102b0b9c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
xor ebx, ebx
push str..fd.cfg
lea ecx, [esp + 0x1c]
mov dword [esp + 0x8c], ebx
call fcn.10002f20
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push esi
push edx
mov byte [esp + 0x94], 1
call fcn.10003010
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 2
call fcn.10003630
mov byte [esp + 0x88], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a45e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a485
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.10002e70
mov byte [esp + 0x88], 3
mov esi, dword [esp + 0x24]
cmp esi, ebx
jne 0x1000a4e7
mov edx, dword [esp + 0x34]
push ebx
push 0x20
push 3
push ebx
push 1
push connect
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x24], esi
cmp esi, 0xffffffff
jne 0x1000a4d8
xor esi, esi
mov dword [esp + 0x24], esi
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x1000a664
push 0x30
lea eax, [esp + 0x50]
push ebx
push eax
mov byte [esp + 0x50], bl
mov dword [esp + 0x51], ebx
mov word [esp + 0x55], bx
mov byte [esp + 0x57], bl
call fcn.100b2d30
add esp, 0xc
mov dword [esp + 0x18], ebx
cmp esi, ebx
je 0x1000a664
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x38
lea edx, [esp + 0x50]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x1000a660
cmp dword [esp + 0x18], 0x38
jne 0x1000a660
mov esi, str.kdown_
lea eax, [esp + 0x44]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x1000a564
cmp cl, bl
je 0x1000a560
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x1000a564
add eax, 2
add esi, 2
cmp cl, bl
jne 0x1000a544
xor eax, eax
jmp 0x1000a569
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x1000a660
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [ebp], eax
mov eax, dword [esp + 0x60]
mov dword [ebp + 4], ecx
xor ebp, ebp
cmp dword [esp + 0x74], ebx
mov dword [edi], edx
mov dword [edi + 4], eax
jle 0x1000a5f4
push 0x28
call fcn.100b2134
add esp, 4
cmp eax, ebx
je 0x1000a5bd
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
mov esi, eax
jmp 0x1000a5bf
xor esi, esi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], esi
cmp eax, ebx
je 0x1000a5db
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x28
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esp + 0x40]
mov dword [esi + 0x20], ebx
lea ebx, [esp + 0x20]
call fcn.10009d00
inc ebp
xor ebx, ebx
cmp ebp, dword [esp + 0x74]
jl 0x1000a594
mov byte [esp + 0x88], bl
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x1000a60e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000a62e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a659
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x1000a6c7
mov esi, dword [esp + 0x24]
mov byte [esp + 0x88], bl
cmp esi, ebx
je 0x1000a67a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], ebx
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 0x1000a69a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a6c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.100b2738
add esp, 0x78
ret 8