Function at 0x101c1220
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101f1bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
mov edi, ecx
lea esi, [esp + 0x1c]
mov byte [esp + 0x1a], 1
call fcn.1019f530
xor ebx, ebx
mov dword [esp + 0x5c], ebx
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x101c1295
cmp dword [edi + 0x18], 8
jb 0x101c1274
mov eax, dword [edi + 4]
jmp 0x101c1277
lea eax, [edi + 4]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x101c12d4
mov dword [esp + 0x5c], 0xffffffff
cmp esi, ebx
je 0x101c12be
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x101c12b5
cmp eax, ebx
je 0x101c12b5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
lea edi, [esp + 0x24]
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.1019f620
mov edi, dword [esp + 0x24]
mov eax, edi
or eax, dword [esp + 0x28]
jne 0x101c1346
cmp dword [esi], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x101c130f
mov ecx, dword [esi]
push ecx
call edi
test eax, eax
je 0x101c130f
mov dword [esi], 0xffffffff
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x101c1327
cmp eax, ebx
je 0x101c1327
push eax
call edi
mov dword [esi], ebx
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
lea edx, [esp + 0x1b]
push edx
lea eax, [esp + 0x34]
push eax
mov ecx, edi
mov byte [esp + 0x23], bl
call fcn.101c18d0
mov byte [esp + 0x5c], 1
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov dword [esp + 0x20], ebx
je 0x101c1374
mov ecx, dword [esp + 0x38]
sub ecx, eax
jne 0x101c137e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x101c13a0
cmp dword [esi], 0xffffffff
je 0x101c13b8
push ebx
lea edx, [esp + 0x24]
push edx
push edi
push eax
mov dword [esp + 0x30], ebx
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101c1400
cmp dword [esi], 0xffffffff
je 0x101c13b8
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x101c13b8
mov dword [esi], 0xffffffff
mov byte [esp + 0x5c], bl
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x101c13cd
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x5c], 0xffffffff
lea eax, [esp + 0x1c]
call fcn.1019f550
xor al, al
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
cmp dword [esi], 0xffffffff
je 0x101c1418
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x101c1418
mov dword [esi], 0xffffffff
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x5c], 2
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x34]
call fcn.101c1550
add esp, 4
cmp al, bl
jne 0x101c14fd
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1a], bl
lea ebx, [esp + 0x1b]
lea esi, [esp + 0x30]
call fcn.10056b40
lea ebx, [esp + 0x1b]
mov byte [esp + 0x1b], 0
call fcn.10056b40
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [ebp + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], edx
mov dword [esp + 0x3c], eax
mov byte [esp + 0x5c], 1
mov eax, dword [esp + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0x101c14a7
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x5c], bl
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x101c14c8
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x5c], 0xffffffff
lea eax, [esp + 0x1c]
call fcn.1019f550
mov al, byte [esp + 0x1a]
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov byte [esp + 0x1b], bl
lea ebx, [esp + 0x1b]
lea esi, [esp + 0x40]
call fcn.10056b40
lea ebx, [esp + 0x1b]
mov byte [esp + 0x1b], 0
call fcn.10056b40
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 8], edx
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], ecx
mov dword [esp + 0x4c], eax
jmp 0x101c148f