Function at 0x1001c5c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
xor ecx, ecx
mov edi, eax
neg eax
adc ecx, ecx
neg ecx
push ecx
push eax
lea esi, [esp + 0x30]
mov eax, ebp
call fcn.1006e0e0
test al, al
je 0x1001c634
push edi
call fcn.10090f1a
add esp, 4
push edi
mov ebx, eax
xor esi, esi
push esi
push ebx
mov dword [esp + 0x2c], ebx
call sub.MSVCR80.dll_memset
mov eax, dword [ebp]
add esp, 0xc
cmp eax, esi
je 0x1001c62b
cmp ebx, esi
je 0x1001c62b
cmp dword [eax], 0xffffffff
je 0x1001c62b
push esi
lea edx, [esp + 0x20]
push edx
push edi
mov dword [esp + 0x28], esi
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001c640
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
push edi
call fcn.10090f1a
add esp, 4
push edi
push esi
push eax
mov dword [esp + 0x44], eax
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp edi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov ebp, edi
jbe 0x1001c708
mov ecx, dword [esp + 0x34]
mov dl, byte [ecx + 0x11]
test dl, dl
jne 0x1001c796
push ebp
call fcn.10090f1a
add esp, 4
push ebp
mov esi, eax
push 0
push esi
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x48]
add esp, 0xc
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
mov ecx, ebp
mov edx, esi
call fcn.1007dc90
test al, al
je 0x1001c7b2
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x1001c6cd
push 0x4b0
call sub.KERNEL32.dll_Sleep
add dword [esp + 0x14], 1
jmp 0x1001c6e8
jbe 0x1001c6e8
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
push ebx
add eax, ecx
push esi
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
add dword [esp + 0x10], ebx
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
cmp dword [esp + 0x14], 5
ja 0x1001c7d7
sub ebp, ebx
jne 0x1001c66e
mov ebx, dword [esp + 0x20]
cmp edi, 4
mov ecx, dword [esp + 0x38]
mov eax, edi
mov edx, ebx
jb 0x1001c729
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x1001c731
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x1001c715
test eax, eax
je 0x1001c7f3
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x1001c788
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1001c7f3
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x1001c788
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1001c7f3
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x1001c788
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1001c7f3
movzx eax, byte [ecx]
movzx esi, byte [edx]
sub esi, eax
je 0x1001c7f3
test esi, esi
mov edi, 1
jg 0x1001c7f5
or edi, 0xffffffff
jmp 0x1001c7f5
mov edx, dword [esp + 0x38]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov eax, dword [esp + 0x3c]
add esp, 4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
mov ecx, dword [esp + 0x38]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
xor edi, edi
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x3c]
add esp, 4
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
test edi, edi
setne al
pop edi
pop esi
pop ebp
pop ebx
add eax, 3
add esp, 0x20
ret 0xc