Function at 0x1001dcfc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
add esp, 0xffffffe4
push esi
mov esi, dword [ebp + 8]
push 0xfffffffffffffffe
pop eax
cmp esi, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edx
jne 0x1001dd31
call fcn.1000f9a0
and dword [eax], 0
call fcn.1000f98d
mov dword [eax], 9
or eax, 0xffffffff
jmp 0x1001e2ba
push ebx
xor ebx, ebx
cmp esi, ebx
jl 0x1001dd40
cmp esi, dword [0x1002e7c0]
jb 0x1001dd67
call fcn.1000f9a0
mov dword [eax], ebx
call fcn.1000f98d
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 9
call fcn.1000cbe1
add esp, 0x14
or eax, 0xffffffff
jmp 0x1001e2b9
mov eax, esi
push edi
sar eax, 5
lea edi, [eax*4 + 0x1002e7e0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 6
add eax, esi
mov cl, byte [eax + 4]
test cl, 1
jne 0x1001dd9a
call fcn.1000f9a0
mov dword [eax], ebx
call fcn.1000f98d
mov dword [eax], 9
jmp 0x1001de04
cmp edx, 0x7fffffff
ja 0x1001ddf2
cmp edx, ebx
mov dword [ebp - 0x10], ebx
je 0x1001e2b6
test cl, 2
jne 0x1001e2b6
cmp dword [ebp + 0xc], ebx
je 0x1001ddf2
mov al, byte [eax + 0x24]
add al, al
sar al, 1
mov byte [ebp - 2], al
push 4
pop ecx
movsx eax, al
dec eax
je 0x1001ddea
dec eax
jne 0x1001dddf
mov eax, edx
not eax
test al, 1
je 0x1001ddf2
and edx, 0xfffffffe
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x1001de6b
mov eax, edx
not eax
test al, 1
jne 0x1001de13
call fcn.1000f9a0
mov dword [eax], ebx
call fcn.1000f98d
mov dword [eax], 0x16
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000cbe1
sub esp, 0xffffffec
jmp 0x1001de47
mov eax, edx
mov dword [ebp + 0x10], ecx
shr eax, 1
cmp eax, ecx
jb 0x1001de21
mov dword [ebp + 0x10], eax
push dword [ebp + 0x10]
call fcn.1000e8ce
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x1001de4f
call fcn.1000f98d
mov dword [eax], 0xc
call fcn.1000f9a0
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x1001e2b8
push 1
push ebx
push ebx
push dword [ebp + 8]
call fcn.1001a0b1
mov ecx, dword [edi]
add esp, 0x10
mov dword [esi + ecx + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + ecx + 0x2c], edx
mov ecx, dword [edi]
add ecx, esi
test byte [ecx + 4], 0x48
je 0x1001dee9
mov cl, byte [ecx + 5]
cmp cl, 0xa
je 0x1001dee9
cmp dword [ebp + 0x10], ebx
je 0x1001dee9
mov byte [eax], cl
mov ecx, dword [edi]
inc eax
dec dword [ebp + 0x10]
cmp byte [ebp - 2], bl
mov dword [ebp - 0x10], 1
mov byte [esi + ecx + 5], 0xa
je 0x1001dee9
mov ecx, dword [edi]
mov cl, byte [esi + ecx + 0x25]
cmp cl, 0xa
je 0x1001dee9
cmp dword [ebp + 0x10], ebx
je 0x1001dee9
mov byte [eax], cl
mov ecx, dword [edi]
inc eax
dec dword [ebp + 0x10]
cmp byte [ebp - 2], 1
mov dword [ebp - 0x10], 2
mov byte [esi + ecx + 0x25], 0xa
jne 0x1001dee9
mov ecx, dword [edi]
mov cl, byte [esi + ecx + 0x26]
cmp cl, 0xa
je 0x1001dee9
cmp dword [ebp + 0x10], ebx
je 0x1001dee9
mov byte [eax], cl
mov ecx, dword [edi]
inc eax
dec dword [ebp + 0x10]
mov dword [ebp - 0x10], 3
mov byte [esi + ecx + 0x26], 0xa
lea ecx, [ebp - 0x18]
push ebx
push ecx
push dword [ebp + 0x10]
push eax
mov eax, dword [edi]
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001e281
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
jl 0x1001e281
cmp ecx, dword [ebp + 0x10]
ja 0x1001e281
mov eax, dword [edi]
lea eax, [esi + eax + 4]
add dword [ebp - 0x10], ecx
test byte [eax], 0x80
je 0x1001e111
cmp byte [ebp - 2], 2
je 0x1001e14b
cmp ecx, ebx
je 0x1001df46
mov ecx, dword [ebp - 0xc]
cmp byte [ecx], 0xa
jne 0x1001df46
or byte [eax], 4
jmp 0x1001df49
and byte [eax], 0xfb
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov dword [ebp + 0x10], ebx
add eax, ebx
mov dword [ebp - 0x10], eax
cmp ebx, eax
jae 0x1001e02f
mov ecx, dword [ebp + 0x10]
mov al, byte [ecx]
cmp al, 0x1a
je 0x1001e01a
cmp al, 0xd
je 0x1001df7c
mov byte [ebx], al
inc ebx
inc ecx
mov dword [ebp + 0x10], ecx
jmp 0x1001e00c
mov eax, dword [ebp - 0x10]
dec eax
cmp ecx, eax
jae 0x1001df9b
lea eax, [ecx + 1]
cmp byte [eax], 0xa
jne 0x1001df96
inc ecx
inc ecx
mov dword [ebp + 0x10], ecx
mov byte [ebx], 0xa
jmp 0x1001e00b
mov dword [ebp + 0x10], eax
jmp 0x1001e008
lea eax, [ebp - 0x18]
inc dword [ebp + 0x10]
push 0
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
or eax, eax
jne 0x1001dfc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, eax
jne 0x1001e008
cmp dword [ebp - 0x18], 0
je 0x1001e008
mov eax, dword [edi]
test byte [esi + eax + 4], 0x48
je 0x1001dfe6
cmp byte [ebp - 1], 0xa
je 0x1001df91
mov byte [ebx], 0xd
mov cl, byte [ebp - 1]
mov eax, dword [edi]
mov byte [esi + eax + 5], cl
jmp 0x1001e00b
cmp ebx, dword [ebp - 0xc]
jne 0x1001dff1
cmp byte [ebp - 1], 0xa
je 0x1001df91
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001a0b1
sub esp, 0xfffffff0
cmp byte [ebp - 1], 0xa
je 0x1001e00c
mov byte [ebx], 0xd
inc ebx
mov eax, dword [ebp - 0x10]
cmp dword [ebp + 0x10], eax
jb 0x1001df5f
jmp 0x1001e02f
mov eax, dword [edi]
lea eax, [esi + eax + 4]
test byte [eax], 0x40
jne 0x1001e02a
or byte [eax], 2
jmp 0x1001e02f
mov al, byte [ecx]
mov byte [ebx], al
inc ebx
mov eax, ebx
sub eax, dword [ebp - 0xc]
cmp byte [ebp - 2], 1
mov dword [ebp - 0x10], eax
jne 0x1001e111
or eax, eax
je 0x1001e111
dec ebx
mov cl, byte [ebx]
or cl, cl
js 0x1001e056
inc ebx
jmp 0x1001e0dc
movzx ecx, cl
xor eax, eax
inc eax
jmp 0x1001e06d
cmp eax, 4
jg 0x1001e076
cmp ebx, dword [ebp - 0xc]
jb 0x1001e076
dec ebx
inc eax
movzx ecx, byte [ebx]
cmp byte [ecx + 0x1002c088], 0
je 0x1001e05e
mov dl, byte [ebx]
movzx ecx, dl
movsx ecx, byte [ecx + 0x1002c088]
or ecx, ecx
jne 0x1001e093
call fcn.1000f98d
mov dword [eax], 0x2a
jmp 0x1001e10d
inc ecx
cmp ecx, eax
jne 0x1001e09c
add ebx, eax
jmp 0x1001e0dc
mov ecx, dword [edi]
add ecx, esi
test byte [ecx + 4], 0x48
je 0x1001e0ca
mov byte [ecx + 5], dl
inc ebx
cmp eax, 2
jl 0x1001e0b8
mov dl, byte [ebx]
inc ebx
mov ecx, dword [edi]
mov byte [esi + ecx + 0x25], dl
cmp eax, 3
jne 0x1001e0c6
mov dl, byte [ebx]
mov ecx, dword [edi]
inc ebx
mov byte [esi + ecx + 0x26], dl
sub ebx, eax
jmp 0x1001e0dc
neg eax
cdq
push 1
push edx
push eax
push dword [ebp + 8]
call fcn.1001a0b1
sub esp, 0xfffffff0
sub ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
shr eax, 1
push eax
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0xc]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x1001e134
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1000f9b3
pop ecx
or dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x1001e120
push eax
call fcn.1000d2e8
pop ecx
mov eax, dword [ebp - 0x14]
cmp eax, 0xfffffffe
jne 0x1001e2b8
mov eax, dword [ebp - 0x10]
jmp 0x1001e2b8
mov edx, dword [edi]
xor ecx, ecx
mov eax, dword [ebp - 0x10]
cmp eax, ebx
setne cl
add eax, eax
mov dword [ebp - 0x10], eax
mov dword [esi + edx + 0x30], ecx
jmp 0x1001e111
cmp ecx, ebx
je 0x1001e15d
mov ecx, dword [ebp - 0xc]
cmp word [ecx], 0xa
jne 0x1001e15d
or byte [eax], 4
jmp 0x1001e160
and byte [eax], 0xfb
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x10], ebx
add eax, ebx
cmp ebx, eax
mov dword [ebp - 0x10], eax
jae 0x1001e276
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax]
cmp cx, 0x1a
je 0x1001e25e
cmp cx, 0xd
je 0x1001e19b
mov word [ebx], cx
inc ebx
inc ebx
inc eax
inc eax
mov dword [ebp + 0x10], eax
jmp 0x1001e250
mov ecx, dword [ebp - 0x10]
sub ecx, 2
cmp eax, ecx
jae 0x1001e1c6
lea ecx, [eax + 2]
cmp word [ecx], 0xa
jne 0x1001e1be
add eax, 4
mov dword [ebp + 0x10], eax
mov word [ebx], 0xa
jmp 0x1001e24e
mov dword [ebp + 0x10], ecx
jmp 0x1001e249
add dword [ebp + 0x10], 2
lea eax, [ebp - 0x18]
push 0
push eax
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [edi]
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
or eax, eax
jne 0x1001e1ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1001e249
cmp dword [ebp - 0x18], 0
je 0x1001e249
mov eax, dword [edi]
test byte [esi + eax + 4], 0x48
je 0x1001e225
cmp word [ebp - 8], 0xa
je 0x1001e1b4
mov word [ebx], 0xd
mov cl, byte [ebp - 8]
mov eax, dword [edi]
mov byte [esi + eax + 5], cl
mov cl, byte [ebp - 7]
mov eax, dword [edi]
mov byte [esi + eax + 0x25], cl
mov eax, dword [edi]
mov byte [esi + eax + 0x26], 0xa
jmp 0x1001e24e
cmp ebx, dword [ebp - 0xc]
jne 0x1001e231
cmp word [ebp - 8], 0xa
je 0x1001e1b4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001a0b1
add esp, 0x10
cmp word [ebp - 8], 0xa
je 0x1001e250
mov word [ebx], 0xd
inc ebx
inc ebx
mov eax, dword [ebp - 0x10]
cmp dword [ebp + 0x10], eax
jb 0x1001e176
jmp 0x1001e276
mov ecx, dword [edi]
lea esi, [esi + ecx + 4]
test byte [esi], 0x40
jne 0x1001e26e
or byte [esi], 2
jmp 0x1001e276
mov ax, word [eax]
mov word [ebx], ax
inc ebx
inc ebx
sub ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
jmp 0x1001e111
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop edi
cmp eax, edi
jne 0x1001e2a5
call fcn.1000f98d
mov dword [eax], 9
call fcn.1000f9a0
mov dword [eax], edi
jmp 0x1001e10d
cmp eax, 0x6d
jne 0x1001e106
mov dword [ebp - 0x14], ebx
jmp 0x1001e111
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret