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

Disassembly:
push 0xffffffffffffffff
push 0x698d2f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x48], ecx
mov eax, dword [ecx + 0x20]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x1c4], ebx
ja 0x5b9215
push 0x6d3ad8
call fcn.0044a330
add esp, 4
jmp 0x5b9387
mov cl, byte [esp + 0x13]
mov eax, dword [0x818998]
mov byte [esp + 0x24], cl
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x48], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x50], ebx
call fcn.004031c0
push 1
lea edx, [esp + 0x17]
push ebx
push edx
lea ecx, [esp + 0x1d8]
mov byte [esp + 0x1d0], 1
mov byte [esp + 0x1f], 0x3a
call fcn.004391c0
cmp eax, 0xffffffff
jne 0x5b92ea
or ecx, eax
mov edi, 0x6d3ad4
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push 0x6d3ad4
lea ecx, [esp + 0x1d8]
call fcn.004391c0
cmp eax, 0xffffffff
jne 0x5b92ea
or ecx, eax
mov edi, 0x6d3ad0
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push 0x6d3ad0
lea ecx, [esp + 0x1d8]
call fcn.004391c0
cmp eax, 0xffffffff
jne 0x5b92ea
cmp dword [0x6e25e0], ebx
jbe 0x5b92cf
mov eax, dword [0x6a3564]
lea ecx, [esp + 0x24]
push eax
push ebx
push 0x6e25d8
call fcn.00402fc0
mov ecx, dword [0x6a3564]
lea edx, [esp + 0x1cc]
push ecx
push ebx
push edx
lea ecx, [esp + 0x30]
call fcn.0040f4d0
jmp 0x5b9302
mov eax, dword [0x6a3564]
lea ecx, [esp + 0x1cc]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.00402fc0
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x5b930f
mov eax, 0x6a3560
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x5b93a7
lea edx, [esp + 0x24]
push 0x6d3ab4
lea eax, [esp + 0x60]
push edx
push eax
call fcn.00408440
add esp, 0xc
mov eax, dword [esp + 0x60]
mov byte [esp + 0x1c4], 2
cmp eax, ebx
jne 0x5b9358
mov eax, 0x6a3560
push eax
call fcn.0044a330
add esp, 4
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1c4], 1
push 1
call fcn.004031c0
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c8], 0
call fcn.004031c0
push 1
lea ecx, [esp + 0x1d0]
mov dword [esp + 0x1c8], 0xffffffff
call fcn.004031c0
xor al, al
jmp 0x5b9754
mov esi, dword [sym.imp.kernel32.dll_ReadFile]
lea ecx, [esp + 0x14]
push ebx
push ecx
lea edx, [esp + 0x54]
push 4
push edx
push ebp
call esi
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x38]
cmp ecx, ebx
jne 0x5b93ce
mov dword [esp + 0x18], ebx
jmp 0x5b93da
mov eax, dword [eax + 0x3c]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
cmp ecx, eax
je 0x5b9478
lea eax, [esp + 0x24]
push 0x6d76f8
lea ecx, [esp + 0x60]
push eax
push ecx
call fcn.00408440
add esp, 0xc
cmp ebp, ebx
mov byte [esp + 0x1c4], 3
je 0x5b9414
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0x1c8], 1
call fcn.004031c0
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c8], 0
call fcn.004031c0
mov ecx, dword [esp + 0x1d0]
mov dword [esp + 0x1c4], 0xffffffff
cmp ecx, ebx
je 0x5b9471
mov al, byte [ecx - 1]
test al, al
je 0x5b9467
cmp al, 0xff
je 0x5b9467
dec al
mov byte [ecx - 1], al
xor al, al
jmp 0x5b9754
dec ecx
push ecx
call fcn.006713a0
add esp, 4
xor al, al
jmp 0x5b9754
xor edi, edi
mov dword [esp + 0x58], ebx
cmp eax, edi
jle 0x5b96e0
mov dword [esp + 0x20], 0x64
mov edx, dword [esp + 0x48]
test ebp, ebp
mov eax, dword [edx + 0x38]
mov edi, dword [eax + ebx*4]
je 0x5b959d
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push ebp
mov dword [esp + 0x30], 0
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x5b959d
lea edx, [esp + 0x14]
push 0
push edx
push eax
lea eax, [esp + 0xc4]
mov dword [esp + 0x5c], 0x3f800000
push eax
push ebp
call esi
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x74]
push 0xc
push eax
push ebp
mov byte [esp + ecx + 0xcc], 0
call esi
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x58]
push 4
push edx
push ebp
call esi
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x64]
push 0x10
push ecx
push ebp
call esi
test edi, edi
je 0x5b959d
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x74]
sub esp, 0xc
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x94]
mov dword [eax + 4], edx
mov edx, esp
sub esp, 0x10
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov dword [edx], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x84], esp
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x98]
mov dword [edx + 8], eax
lea eax, [esp + 0xe8]
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x43]
mov ecx, esp
push edx
push eax
call fcn.004a64f0
mov ecx, edi
mov byte [esp + 0x1f4], 1
call fcn.00444350
mov ecx, ebx
and ecx, 0x8000003f
jns 0x5b95ac
dec ecx
or ecx, 0xffffffc0
inc ecx
jne 0x5b96c2
mov edx, dword [0x8189a4]
mov eax, dword [0x8189b4]
cmp edx, eax
je 0x5b96c2
mov al, byte [0x6dfe28]
mov ecx, 0xf
mov byte [esp + 0x78], al
xor eax, eax
lea edi, [esp + 0x79]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x78]
cdq
idiv dword [esp + 0x18]
push eax
push 0x6d76d8
push ecx
mov dword [esp + 0x60], eax
call fcn.0067429f
mov ecx, dword [esp + 0x50]
xor eax, eax
add esp, 0xc
cmp ecx, eax
je 0x5b96c2
lea edi, [esp + 0x78]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov dl, byte [esp + 0x13]
push 1
not ecx
dec ecx
mov byte [esp + 0x38], dl
mov ebx, ecx
lea ecx, [esp + 0x38]
push ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.00403350
test al, al
je 0x5b9668
mov edi, dword [esp + 0x38]
mov ecx, ebx
mov eax, ecx
lea esi, [esp + 0x78]
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 esi, dword [sym.imp.kernel32.dll_ReadFile]
mov dword [esp + 0x3c], ebx
mov byte [ecx + ebx], 0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x44]
push eax
lea eax, [esp + 0x38]
mov edx, dword [ecx]
push eax
mov byte [esp + 0x1cc], 5
call dword [edx + 0x70]
mov eax, dword [esp + 0x38]
xor edi, edi
cmp eax, edi
mov byte [esp + 0x1c4], 1
je 0x5b96b2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x5b96a9
cmp al, 0xff
je 0x5b96a9
dec al
mov byte [ecx], al
jmp 0x5b96b2
push ecx
call fcn.006713a0
add esp, 4
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
inc ebx
add ecx, 0x64
cmp ebx, eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x20], ecx
jl 0x5b948e
xor edi, edi
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x28]
mov byte [esp + 0x1c4], 0
cmp eax, edi
je 0x5b9714
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x5b970b
cmp al, 0xff
je 0x5b970b
dec al
mov byte [ecx], al
jmp 0x5b9714
push ecx
call fcn.006713a0
add esp, 4
mov ecx, dword [esp + 0x1d0]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
cmp ecx, edi
mov dword [esp + 0x1c4], 0xffffffff
je 0x5b9752
mov al, byte [ecx - 1]
test al, al
je 0x5b9748
cmp al, 0xff
je 0x5b9748
dec al
mov byte [ecx - 1], al
jmp 0x5b9752
dec ecx
push ecx
call fcn.006713a0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x1bc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1b8
ret 0x10