Function at 0x1001c780
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x188
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push ebp
mov ebp, dword [esp + 0x194]
push esi
xor eax, eax
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0x38], ebp
mov esi, edx
mov byte [esp + 0x17], bl
mov byte [esp + 0x138], bl
mov dword [esp + 0x139], eax
mov dword [esp + 0x13d], eax
mov dword [esp + 0x141], eax
mov word [esp + 0x145], ax
mov byte [esp + 0x147], al
mov byte [esp + 0x18], 0x50
mov byte [esp + 0x19], 0x4b
mov byte [esp + 0x1a], 3
mov byte [esp + 0x1b], 4
cmp edi, ebx
jne 0x1001c7fc
mov dword [esp + 0x20], str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
jmp 0x1001c815
cmp edi, 1
je 0x1001c80d
cmp edi, 3
je 0x1001c80d
xor al, al
jmp 0x1001ca0e
mov dword [esp + 0x20], str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_______:___
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x3c], eax
cmp byte [ebp + 0xc9], bl
je 0x1001c833
mov al, 1
jmp 0x1001ca0e
cmp esi, ebx
je 0x1001c806
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 + 0x30], esi
cmp esi, ebp
je 0x1001ca0a
cmp edi, ebx
jne 0x1001c8a5
lea ecx, [esp + 0x28]
push ecx
push ebx
push ebx
push esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push ebx
sub eax, 0xd53e8000
push 0x989680
sbb ecx, 0x19db1de
push ecx
push eax
call fcn.100e67b0
mov ebp, eax
mov dword [esp + 0x1c], 0x784ce0
jmp 0x1001c8a9
mov dword [esp + 0x1c], 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 + 0x144]
push ecx
push esi
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x51eb851f
mul dword [esp + 0x1c]
shr edx, 5
xor edi, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edx
cmp dword [esp + 0x1c], ebx
jbe 0x1001ca03
xor eax, eax
push ebp
mov byte [esp + 0x14c], bl
mov dword [esp + 0x14d], eax
mov dword [esp + 0x151], eax
mov dword [esp + 0x155], eax
mov word [esp + 0x159], ax
mov byte [esp + 0x15b], al
call fcn.100d0bf0
add esp, 4
dec ebp
xor esi, esi
lea esp, [esp]
call fcn.100d0c02
cdq
idiv dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
inc esi
cmp esi, 0x3b
mov cl, byte [edx + eax]
mov byte [esp + esi + 0x157], cl
jle 0x1001c930
push 0xec
lea edx, [esp + 0x48]
push ebx
push edx
mov dword [esp + 0x4c], ebx
call fcn.100d4cc0
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x168]
push 0x100
push ecx
mov dword [esp + 0x148], ebx
call fcn.1006c040
push ebx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x15c]
push ecx
call fcn.100723d0
mov edx, dword [esp + 0x40]
add esp, 0x28
cmp dword [esp + 0x148], edx
je 0x1001c9d6
inc dword [esp + 0x24]
inc edi
cmp edi, dword [esp + 0x28]
jne 0x1001c9c6
mov eax, dword [0x101dd388]
push 0x1a
push eax
call dword [0x101dd384]
xor edi, edi
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x1c]
jb 0x1001c8f3
jmp 0x1001c9ff
mov esi, dword [esp + 0x38]
push 0x3c
lea edx, [esp + 0x15c]
push edx
lea eax, [esi + 0xca]
push eax
call fcn.100d0e10
add esp, 0xc
mov byte [esi + 0xc9], 1
mov byte [esp + 0x17], 1
mov esi, dword [esp + 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x188
ret 4