Function at 0x5e9880
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x654a43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x4c]
call fcn.005eb4e0
mov dword [esp + 0x94], 0
mov dword [esp + 0x1c], 0x659b68
mov eax, dword [esi + 0x1c]
mov byte [esp + 0x94], 1
test eax, eax
mov edi, 0xc
jg 0x5e98fd
jl 0x5e98d5
cmp dword [esi + 0x18], edi
jae 0x5e98fd
mov esi, dword [esi + 0x14]
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 3
lea ecx, [esp + 0x4c]
mov dword [esp + 0x94], 0xffffffff
call fcn.005eb520
mov eax, esi
jmp 0x5e9c76
mov edx, dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x70]
push edi
push ecx
push edx
call ebx
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.005eb530
test eax, eax
je 0x5e9a05
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x1c]
xor eax, eax
add edi, 8
cmp eax, ecx
jg 0x5e99ea
jl 0x5e9950
cmp edi, dword [esi + 0x18]
ja 0x5e99d5
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x7c]
push 8
push eax
push ecx
call ebx
push 4
lea edx, [esp + 0x78]
push str.fmt
push edx
call fcn.0060d550
add esp, 0xc
test eax, eax
jne 0x5e9997
mov edx, dword [esi + 0x10]
push eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x80]
push eax
push 0x10
push ecx
push edx
call ebx
mov byte [esp + 0x64], 1
mov edx, dword [esp + 0x78]
mov ecx, dword [esi + 0x1c]
xor eax, eax
add edi, edx
cmp eax, ecx
jg 0x5e99ea
jl 0x5e99ad
cmp edi, dword [esi + 0x18]
ja 0x5e99de
mov eax, dword [esi + 0x10]
push 0
push 0
push edi
push eax
call ebp
push 4
lea ecx, [esp + 0x78]
push str.data
push ecx
call fcn.0060d550
add esp, 0xc
test eax, eax
je 0x5e9a05
jmp 0x5e9935
cmp eax, dword [esi + 0x1c]
jl 0x5e99fb
jg 0x5e99ea
jmp 0x5e99e5
cmp eax, dword [esi + 0x1c]
jl 0x5e99fb
jg 0x5e99ea
cmp edi, dword [esi + 0x18]
jbe 0x5e99fb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5e99fb
mov esi, 1
jmp 0x5e98e2
mov esi, 3
jmp 0x5e98e2
push 4
lea edx, [esp + 0x78]
push str.data
push edx
call fcn.0060d550
add esp, 0xc
test eax, eax
jne 0x5e9c5d
mov al, byte [esp + 0x64]
test al, al
je 0x5e9c5d
lea ecx, [esp + 0x4c]
call fcn.005eb5b0
fld dword [esp + 0x60]
call fcn.0060a154
mov ebp, edx
mov edi, eax
test ebp, ebp
jg 0x5e9a5d
jl 0x5e9a4d
test edi, edi
jae 0x5e9a5d
mov eax, dword [0x6fd978]
lea ecx, [esp + 0x2c]
push eax
push ecx
jmp 0x5e9b07
push 0
push 0x3c
push ebp
push edi
call fcn.0060bb90
mov ebx, eax
mov ecx, edi
cdq
sub ecx, eax
mov eax, ebp
sbb eax, edx
push 0
push 0x3c
push eax
push ecx
call fcn.0060bae0
push 0
push 0x3c
push edx
push eax
call fcn.0060bb90
push 0
push 0xe10
push ebp
push edi
mov dword [esp + 0x28], eax
call fcn.0060bae0
test edx, edx
jg 0x5e9afd
jl 0x5e9aa8
cmp eax, 0x2710
ja 0x5e9afd
test eax, eax
je 0x5e9ac8
mov ecx, dword [esp + 0x18]
mov edx, dword [0x6fd9d0]
push ecx
push eax
lea eax, [esp + 0x34]
push edx
push eax
call fcn.0060a593
add esp, 0x10
jmp 0x5e9b0f
mov eax, dword [esp + 0x18]
push ebx
test eax, eax
je 0x5e9ae8
mov ecx, dword [0x6fd9cc]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.0060a593
add esp, 0x10
jmp 0x5e9b0f
mov eax, dword [0x6fd9c8]
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.0060a593
add esp, 0xc
jmp 0x5e9b0f
lea edx, [esp + 0x2c]
push 0x6c9030
push edx
call fcn.0060a593
add esp, 8
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x2c]
lea edi, [esi + 8]
push eax
mov eax, dword [0x6fda24]
push ecx
push edx
push eax
push edi
mov dword [esp + 0x2c], edi
call fcn.0061fae1
xor eax, eax
add esp, 0x14
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x24], ax
mov ebp, dword [edi]
mov ebx, dword [0x6fca90]
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 2
call fcn.00401070
test ebp, ebp
je 0x5e9bac
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5e9bac
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push ebp
push eax
push ebx
call edi
test eax, eax
mov dword [esp + 0x28], eax
je 0x5e9bac
lea ecx, [eax + eax + 2]
push ecx
call fcn.00622acb
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x5e9bac
mov edx, dword [esp + 0x28]
push edx
push eax
push 0xffffffffffffffff
push ebp
push 0
push ebx
call edi
mov dword [esp + 0x28], eax
mov eax, dword [0x6f7b78]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov byte [esp + 0x94], 3
test eax, eax
jne 0x5e9bc9
lea eax, [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call ebx
mov edi, eax
test edi, edi
jle 0x5e9c23
push edi
lea ecx, [esp + 0x14]
call fcn.00623157
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x5e9bff
lea ecx, [esp + 0x24]
push 0
push 0
push edi
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call ebx
lea ecx, [esp + 0x10]
mov byte [esi + 0xc], 1
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00622ec3
lea ecx, [esp + 0x10]
mov byte [esp + 0x94], 2
call fcn.00622d8a
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 1
call fcn.00401070
lea ecx, [esp + 0x4c]
mov dword [esp + 0x94], 0xffffffff
call fcn.005eb520
xor eax, eax
jmp 0x5e9c76
lea ecx, [esp + 0x4c]
mov dword [esp + 0x94], 0xffffffff
call fcn.005eb520
mov eax, 1
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x88
ret