Function at 0x5e3a40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x603309
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [edx]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x48], ebx
cmp eax, 0xffffffff
je 0x5e3f37
test eax, eax
je 0x5e3f37
test byte [edx + 4], 0x60
mov eax, 0x100
mov bh, byte [ebp + 0x10]
mov edi, 0x80
cmovne edi, eax
mov bl, bh
xor ecx, ecx
shr bl, 1
mov dword [ebp - 0x38], ecx
not bl
mov dword [ebp - 0x3c], ecx
xor esi, esi
mov ecx, edx
mov dword [ebp - 0x34], edi
and bl, 1
call fcn.005e4680
mov dword [ebp - 0x54], eax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x58], edx
movlpd qword [ebp - 0x50], xmm0
test eax, eax
je 0x5e3ad6
mov ecx, eax
call fcn.005dc400
mov ecx, dword [ebp - 0x2c]
lea edi, [edi + edi*4]
add edi, edi
xorps xmm0, xmm0
mov dword [ebp - 0x30], edi
movq qword [ebp - 0x20], xmm0
test byte [ecx + 4], 0x60
je 0x5e3d0e
mov ecx, 2
mov eax, edi
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0041e7cf
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, 0xa00
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x30], edi
mov edx, dword [eax + 4]
test edx, 0x40
mov eax, 0xa
cmove ecx, eax
movzx eax, cx
mov ecx, 0xd
mov dword [ebp - 0x40], eax
mov eax, 0xd00
cmove eax, ecx
movzx eax, ax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5e3c8e
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x5e3c5b
shr edi, 1
mov edx, 0
je 0x5e3bfe
add eax, 1
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
adc ecx, 0
mov dword [ebp - 0x28], ecx
movzx ecx, word [eax + edx*2]
cmp cx, word [ebp - 0x44]
je 0x5e3bba
cmp cx, word [ebp - 0x40]
je 0x5e3bba
xor al, al
jmp 0x5e3bbc
mov al, 1
test bl, bl
jne 0x5e3bce
test al, al
je 0x5e3bc9
inc dword [ebp - 0x3c]
jmp 0x5e3bf3
mov bl, 1
inc esi
jmp 0x5e3bf3
cmp bl, 1
jne 0x5e3bde
test al, al
jne 0x5e3bda
inc esi
jmp 0x5e3bf3
mov bl, 2
jmp 0x5e3be7
cmp bl, 2
jne 0x5e3bf3
test al, al
je 0x5e3c5b
test bh, 1
je 0x5e3bed
inc esi
cmp cx, word [ebp - 0x40]
je 0x5e3c5b
mov eax, dword [ebp - 0x24]
inc edx
mov ecx, dword [ebp - 0x28]
cmp edx, edi
jb 0x5e3b97
cmp bl, 3
je 0x5e3c5b
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x20]
add eax, edi
mov dword [ebp - 0x38], eax
add eax, dword [ebp - 0x34]
push 0
push eax
call fcn.004033e0
test byte [ebp - 0x14], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x38]
lea edi, [eax + ecx*2]
mov dword [ebp - 0x30], edi
je 0x5e3c38
push ecx
mov ecx, dword [ebp - 0x2c]
push 1
push 0xffffffffffffffff
call fcn.005e3750
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x28]
test eax, eax
mov eax, dword [ebp - 0x24]
jne 0x5e3b83
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov edx, edi
mov eax, ebx
shld eax, edx, 1
push 0
add edx, edx
add edx, dword [ebp - 0x54]
adc eax, dword [ebp - 0x58]
push eax
push edx
call fcn.005e36d0
or edi, ebx
je 0x5e3f27
test esi, esi
jne 0x5e3c96
lea edi, [esi + 1]
jmp 0x5e3cf7
mov ebx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
jmp 0x5e3c61
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
lea ebx, [ecx + eax*2]
mov eax, 0xffff
cmp word [ebx + esi*2 - 2], ax
jne 0x5e3cac
dec esi
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x5e3cf4
test esi, esi
je 0x5e3cf4
push 0
push 0
lea edi, [esi + 1]
mov ecx, eax
push edi
call fcn.005db9a0
test eax, eax
jne 0x5e3cce
xor edi, edi
jmp 0x5e3cf7
mov ecx, dword [ebp - 0x48]
lea eax, [esi + esi]
push eax
push ebx
call fcn.005dc190
push eax
call fcn.0041fb10
mov ecx, dword [ebp - 0x48]
add esp, 0xc
push esi
call fcn.005dc120
xor ecx, ecx
mov word [eax], cx
jmp 0x5e3cf7
lea edi, [esi + 1]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5e3d07
push eax
call fcn.0041e1c3
add esp, 4
mov eax, edi
jmp 0x5e3f39
push edi
call fcn.0041e7cf
mov edx, dword [ebp - 0x34]
mov ecx, eax
mov eax, edx
mov dword [ebp - 0x18], ecx
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
mov eax, dword [ebp - 0x2c]
push edx
push ecx
mov dword [ebp - 0x44], ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5e3e9d
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
nop dword [eax + eax]
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x5e3ea5
xor edx, edx
test edi, edi
je 0x5e3de2
add eax, 1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x44]
adc ecx, 0
mov dword [ebp - 0x24], ecx
mov al, byte [edx + eax]
cmp al, 0xd
je 0x5e3d8f
cmp al, 0xa
je 0x5e3d8f
xor cl, cl
jmp 0x5e3d91
mov cl, 1
test bl, bl
jne 0x5e3da3
test cl, cl
je 0x5e3d9e
inc dword [ebp - 0x3c]
jmp 0x5e3dd7
mov bl, 1
inc esi
jmp 0x5e3dd7
cmp bl, 1
jne 0x5e3db3
test cl, cl
jne 0x5e3daf
inc esi
jmp 0x5e3dd7
mov bl, 2
jmp 0x5e3dc0
cmp bl, 2
jne 0x5e3dce
test cl, cl
je 0x5e3e88
test bh, 1
je 0x5e3dc6
inc esi
cmp al, 0xa
jne 0x5e3dd7
mov bl, 3
jmp 0x5e3dd7
cmp bl, 3
je 0x5e3e88
mov eax, dword [ebp - 0x28]
inc edx
mov ecx, dword [ebp - 0x24]
cmp edx, edi
jb 0x5e3d71
cmp bl, 3
je 0x5e3ea5
mov eax, dword [ebp - 0x38]
add eax, edi
mov edi, dword [ebp - 0x34]
add edi, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], edi
je 0x5e3e55
cmp edi, dword [ebp - 0x30]
jbe 0x5e3e55
mov eax, dword [ebp - 0x18]
push edi
mov dword [ebp - 0x30], eax
call fcn.0041e7cf
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x5e3e4d
cmp dword [ebp - 0x40], 0
jbe 0x5e3e44
mov edi, dword [ebp - 0x40]
mov edx, eax
sub edx, ecx
nop word [eax + eax]
mov al, byte [ecx + edx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edi, 1
jne 0x5e3e30
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x30]
push eax
call fcn.0041e1c3
add esp, 4
mov eax, edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
add eax, dword [ebp - 0x38]
push 0
push ecx
push dword [ebp - 0x34]
mov dword [ebp - 0x44], eax
push eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5e3ea5
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
jmp 0x5e3d60
mov ebx, dword [ebp - 0x24]
lea eax, [edi - 1]
mov edi, dword [ebp - 0x28]
cmp edx, eax
jae 0x5e3eab
add edi, 0xffffffff
adc ebx, 0xffffffff
jmp 0x5e3eab
mov ebx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
jmp 0x5e3eab
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
mov ecx, edi
mov eax, ebx
add ecx, dword [ebp - 0x54]
push 0
adc eax, dword [ebp - 0x58]
push eax
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.005e36d0
or edi, ebx
je 0x5e3f27
mov ebx, dword [ebp - 0x18]
test esi, esi
jne 0x5e3ed3
mov esi, 1
jmp 0x5e3f16
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x48]
add eax, ebx
test edx, edx
je 0x5e3f15
mov ecx, dword [ebp - 0x2c]
test dword [ecx + 4], 0x180
je 0x5e3eff
push ecx
push esi
push eax
mov ecx, edx
call fcn.005d9e30
cmp byte [eax + 8], 0
jne 0x5e3f15
xor esi, esi
jmp 0x5e3f16
push 0
push ecx
push esi
push eax
mov ecx, edx
call fcn.005d9f40
cmp byte [eax + 8], 0
jne 0x5e3f15
xor esi, esi
jmp 0x5e3f16
inc esi
test ebx, ebx
je 0x5e3f23
push ebx
call fcn.0041e1c3
add esp, 4
mov eax, esi
jmp 0x5e3f39
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5e3f37
push eax
call fcn.0041e1c3
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 0xc