Function at 0x401880
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x682eb9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
push esi
push edi
mov ebx, ecx
push ebp
mov dword [esp + 0x18], ebx
call fcn.00438ae0
mov esi, dword [sym.imp.kernel32.dll_ReadFile]
xor edi, edi
lea eax, [esp + 0x10]
push edi
push eax
lea ecx, [esp + 0x24]
push 2
push ecx
push ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
call esi
lea edx, [esp + 0x10]
push edi
push edx
add ebx, 0x58
push 2
push ebx
push ebp
call esi
or ebx, 0xffffffff
cmp word [esp + 0x1c], di
mov dword [esp + 0x24], edi
jle 0x401b1e
lea eax, [esp + 0x10]
push edi
push eax
lea ecx, [esp + 0x34]
push 4
push ecx
push ebp
xor esi, esi
call dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [esp + 0x2c]
cmp eax, 0xe
ja case.0x401910.10
jmp dword [eax*4 + 0x401ff0]
push 0xb0
call fcn.00673b05
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, edi
mov dword [esp + 0x5c], edi
je 0x401ae6
mov ecx, eax
call fcn.00401090
jmp 0x401ae8
push 0xec
call fcn.00673b05
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, edi
mov dword [esp + 0x5c], 1
je 0x401ae6
mov ecx, eax
call fcn.00408740
jmp 0x401ae8
push 0xec
call fcn.00673b05
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, edi
mov dword [esp + 0x5c], 2
je 0x401ae6
mov ecx, eax
call fcn.0040d560
jmp 0x401ae8
push 0xdc
call fcn.00673b05
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, edi
mov dword [esp + 0x5c], 3
je 0x401ae6
mov ecx, eax
call fcn.00403940
jmp 0x401ae8
push 0xbc
call fcn.00673b05
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, edi
mov dword [esp + 0x5c], 4
je 0x401ae6
mov ecx, eax
call fcn.0040d1c0
jmp 0x401ae8
push 0xe4
call fcn.00673b05
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, edi
mov dword [esp + 0x5c], 5
je 0x401ae6
mov ecx, eax
call fcn.0040c810
jmp 0x401ae8
push 0xc0
call fcn.00673b05
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, edi
mov dword [esp + 0x5c], 6
je 0x401ae6
mov ecx, eax
call fcn.0040cf00
jmp 0x401ae8
push 0xc8
call fcn.00673b05
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, edi
mov dword [esp + 0x5c], 7
je 0x401ae6
mov ecx, eax
call fcn.00410120
jmp 0x401ae8
push 0xf8
call fcn.00673b05
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, edi
mov dword [esp + 0x5c], 8
je 0x401ae6
mov ecx, eax
call fcn.00405070
jmp 0x401ae8
push 0xb4
call fcn.00673b05
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, edi
mov dword [esp + 0x5c], 9
je 0x401ae6
mov ecx, eax
call fcn.004dc120
jmp 0x401ae8
push 0xf4
call fcn.00673b05
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, edi
mov dword [esp + 0x5c], 0xa
je 0x401ae6
mov ecx, eax
call fcn.0040af20
jmp 0x401ae8
xor eax, eax
mov dword [esp + 0x5c], ebx
mov esi, eax
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x5c]
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0xc]
mov eax, dword [esp + 0x24]
movsx ecx, word [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x4018ed
mov esi, dword [sym.imp.kernel32.dll_ReadFile]
lea edx, [esp + 0x10]
push edi
push edx
lea eax, [esp + 0x28]
push 4
push eax
push ebp
mov dword [esp + 0x34], edi
call esi
mov eax, dword [esp + 0x20]
cmp eax, edi
jle 0x401bf8
mov cl, byte [esp + 0x64]
lea esi, [eax + 1]
cmp esi, edi
mov byte [esp + 0x34], cl
mov eax, esi
jge 0x401b51
xor eax, eax
push eax
call fcn.00673b05
add esp, 4
mov ebp, eax
cmp esi, edi
mov dword [esp + 0x38], ebp
jbe 0x401b71
mov ecx, esi
cmp eax, edi
je 0x401b6d
mov byte [eax], 0
inc eax
dec ecx
jne 0x401b66
lea eax, [esi + ebp]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x10]
push 0
push edx
push eax
push ebp
push ecx
mov dword [esp + 0x70], 0xb
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [edx + 0x2c]
push 1
mov dword [esp + 0x28], ecx
push ecx
mov ecx, ebx
call fcn.00403350
test al, al
je 0x401be5
mov eax, dword [esp + 0x24]
mov edi, dword [ebx + 4]
mov ecx, eax
mov esi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
add ebx, eax
mov byte [ebx], 0
push ebp
mov dword [esp + 0x60], 0xffffffff
call fcn.006713a0
add esp, 4
jmp 0x401c42
mov eax, dword [esp + 0x14]
mov edi, 0x6dfe28
or ecx, 0xffffffff
push 1
lea ebp, [eax + 0x2c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00403350
test al, al
je 0x401c42
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
mov esi, 0x6dfe28
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], ebx
mov ebp, dword [ebp + 4]
add ebp, ebx
mov byte [ebp], 0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x64]
mov edi, dword [sym.imp.kernel32.dll_ReadFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [ebx + 0x80]
push 0x10
push ecx
push esi
call edi
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [ebx + 0x90]
push 0x10
push eax
push esi
call edi
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [ebx + 0x78]
push 4
push edx
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
add ebx, 0x7c
push 4
push ebx
push esi
call edi
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x30]
push 4
push edx
push esi
call edi
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x401d7b
lea esi, [eax + 1]
mov al, byte [esp + 0x64]
mov byte [esp + 0x34], al
mov eax, esi
test esi, esi
jge 0x401cc6
xor eax, eax
push eax
call fcn.00673b05
add esp, 4
mov ebp, eax
test esi, esi
mov dword [esp + 0x38], ebp
jbe 0x401ce6
mov ecx, esi
test eax, eax
je 0x401ce2
mov byte [eax], 0
inc eax
dec ecx
jne 0x401cdb
lea eax, [esi + ebp]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push ebp
push eax
mov dword [esp + 0x70], 0xc
call dword [sym.imp.kernel32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
mov edi, ebp
xor eax, eax
push 1
lea ebx, [ecx + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], ecx
push ecx
mov ecx, ebx
call fcn.00403350
test al, al
je 0x401d5a
mov eax, dword [esp + 0x24]
mov edi, dword [ebx + 4]
mov ecx, eax
mov esi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
add ebx, eax
mov byte [ebx], 0
mov ecx, dword [esp + 0x14]
or eax, 0xffffffff
push ebp
mov dword [ecx + 0x4c], eax
mov dword [esp + 0x60], eax
call fcn.006713a0
mov esi, dword [esp + 0x68]
mov edi, dword [sym.imp.kernel32.dll_ReadFile]
add esp, 4
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x20]
push 4
push eax
push esi
mov dword [esp + 0x2c], 0
call edi
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x401eb6
mov cl, byte [esp + 0x64]
lea esi, [eax + 1]
test esi, esi
mov byte [esp + 0x44], cl
mov eax, esi
jge 0x401db3
xor eax, eax
push eax
call fcn.00673b05
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 0x48], ebx
jbe 0x401dd3
mov ecx, esi
test eax, eax
je 0x401dcf
mov byte [eax], 0
inc eax
dec ecx
jne 0x401dc8
add esi, ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x10]
push 0
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x70], 0xd
call dword [sym.imp.kernel32.dll_ReadFile]
mov dl, byte [esp + 0x64]
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], dl
call fcn.004031c0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x38]
push ebp
call fcn.00403350
test al, al
je 0x401e50
mov edi, dword [esp + 0x38]
mov ecx, ebp
mov eax, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x3c], ebp
mov byte [ecx + ebp], 0
mov ecx, dword [0x6e29b4]
lea edx, [esp + 0x34]
push 0
push edx
mov byte [esp + 0x64], 0xe
call fcn.0044d240
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0xa4], eax
mov eax, dword [esp + 0x38]
test eax, eax
mov byte [esp + 0x5c], 0xd
je 0x401e9b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401e92
cmp al, 0xff
je 0x401e92
dec al
mov byte [ecx], al
jmp 0x401e9b
push ecx
call fcn.006713a0
add esp, 4
push ebx
mov dword [esp + 0x60], 0xffffffff
call fcn.006713a0
mov esi, dword [esp + 0x68]
mov edi, dword [sym.imp.kernel32.dll_ReadFile]
add esp, 4
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x20]
push 4
push eax
push esi
call edi
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x401fd8
mov cl, byte [esp + 0x64]
lea ebx, [eax + 1]
test ebx, ebx
mov byte [esp + 0x44], cl
mov eax, ebx
jge 0x401ee6
xor eax, eax
push eax
call fcn.00673b05
add esp, 4
mov ebp, eax
test ebx, ebx
mov dword [esp + 0x48], ebp
jbe 0x401f06
mov ecx, ebx
test eax, eax
je 0x401f02
mov byte [eax], 0
inc eax
dec ecx
jne 0x401efb
lea eax, [ebx + ebp]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x18]
xor ebx, ebx
lea edx, [esp + 0x10]
push ebx
push edx
push eax
push ebp
push esi
mov dword [esp + 0x70], 0xf
call edi
mov cl, byte [esp + 0x64]
mov edi, ebp
mov byte [esp + 0x34], cl
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x38]
push ebx
call fcn.00403350
test al, al
je 0x401f7c
mov edi, dword [esp + 0x38]
mov ecx, ebx
mov edx, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
call fcn.00403330
mov ecx, dword [0x6e29b4]
lea eax, [esp + 0x34]
push 0
push eax
mov byte [esp + 0x64], 0x10
call fcn.0044d240
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0xa8], eax
mov eax, dword [esp + 0x38]
test eax, eax
mov byte [esp + 0x5c], 0xf
je 0x401fc7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401fbe
cmp al, 0xff
je 0x401fbe
dec al
mov byte [ecx], al
jmp 0x401fc7
push ecx
call fcn.006713a0
add esp, 4
push ebp
mov dword [esp + 0x60], 0xffffffff
call fcn.006713a0
add esp, 4
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 4