Function at 0x1001cf90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x180
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x17c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x18c]
push esi
xor eax, eax
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0x30], ebp
mov esi, edx
mov byte [esp + 0x13], bl
mov byte [esp + 0x130], bl
mov dword [esp + 0x131], eax
mov dword [esp + 0x135], eax
mov dword [esp + 0x139], eax
mov word [esp + 0x13d], ax
mov byte [esp + 0x13f], al
cmp edi, ebx
jne 0x1001cff8
mov dword [esp + 0x18], str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
jmp 0x1001d011
cmp edi, 1
je 0x1001d009
cmp edi, 3
je 0x1001d009
xor al, al
jmp 0x1001d20f
mov dword [esp + 0x18], str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_______:___
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x2c], eax
cmp byte [ebp + 0xc9], bl
je 0x1001d02f
mov al, 1
jmp 0x1001d20f
cmp esi, ebx
je 0x1001d002
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or ebp, 0xffffffff
mov dword [esp + 0x28], esi
cmp esi, ebp
je 0x1001d20b
cmp edi, ebx
jne 0x1001d0a1
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
push esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push ebx
sub eax, 0xd53e8000
push 0x989680
sbb ecx, 0x19db1de
push ecx
push eax
call fcn.100e67b0
mov ebp, eax
mov dword [esp + 0x14], 0x784ce0
jmp 0x1001d0a5
mov dword [esp + 0x14], ebp
mov edx, dword [0x101dd388]
push 0x19
push edx
call dword [0x101dd384]
push ebx
lea eax, [esp + 0x38]
push eax
push 0x10
lea ecx, [esp + 0x13c]
push ecx
push esi
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x51eb851f
mul dword [esp + 0x14]
shr edx, 5
xor edi, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edx
cmp dword [esp + 0x14], ebx
jbe 0x1001d204
nop
xor eax, eax
push ebp
mov byte [esp + 0x144], bl
mov dword [esp + 0x145], eax
mov dword [esp + 0x149], eax
mov dword [esp + 0x14d], eax
mov word [esp + 0x151], ax
mov byte [esp + 0x153], al
call fcn.100d0bf0
add esp, 4
dec ebp
xor esi, esi
lea esp, [esp]
call fcn.100d0c02
cdq
idiv dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 0x3b
mov cl, byte [edx + eax]
mov byte [esp + esi + 0x14f], cl
jle 0x1001d130
push 0xec
lea edx, [esp + 0x40]
push ebx
push edx
mov dword [esp + 0x44], ebx
call fcn.100d4cc0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x160]
push 0x100
push ecx
mov dword [esp + 0x140], ebx
call fcn.1006c040
push ebx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0x154]
push ecx
call fcn.100723d0
add esp, 0x28
cmp dword [esp + 0x140], 0x53504238
je 0x1001d1d7
inc dword [esp + 0x1c]
inc edi
cmp edi, dword [esp + 0x20]
jne 0x1001d1c7
mov edx, dword [0x101dd388]
push 0x1a
push edx
call dword [0x101dd384]
xor edi, edi
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x14]
jb 0x1001d0f0
jmp 0x1001d200
mov esi, dword [esp + 0x30]
push 0x3c
lea ecx, [esp + 0x154]
push ecx
lea edx, [esi + 0xca]
push edx
call fcn.100d0e10
add esp, 0xc
mov byte [esi + 0xc9], 1
mov byte [esp + 0x13], 1
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x180
ret 4