Function at 0x5fd9afbd
Capabilities:
Read file on windows

Disassembly:
cmp al, 0xd
je 0x5fd9b001
test al, al
jne 0x5fd9b009
jmp 0x5fd9b001
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, ecx
mov dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov edi, dword [edx + 0x20]
mov esi, dword [edx + 0x894]
mov ebx, dword [edx + 0x898]
mov dword [ebp - 4], edx
cmp esi, ebx
jae 0x5fd9b009
lea ebx, [ebx]
cmp edi, 2
je 0x5fdb4773
cmp edi, 3
je 0x5fdb4789
mov al, byte [esi]
cmp al, 0xa
jne 0x5fd9afae
mov byte [esi], 0
inc esi
cmp esi, ebx
jb 0x5fd9afe9
mov dword [edx + 0x89c], esi
mov dword [edx + 0x8a0], esi
cmp esi, ebx
jae 0x5fd9b04d
lea esp, [esp]
cmp edi, 2
je 0x5fdb47b0
cmp edi, 3
je 0x5fdb47c6
mov al, byte [esi]
cmp al, 0xd
je 0x5fd9b112
cmp al, 0xa
je 0x5fd9b112
test al, al
je 0x5fd9b112
inc esi
cmp esi, ebx
jb 0x5fd9b01c
cmp dword [edx + 0x8a4], 0
jne 0x5fd9b109
mov ecx, dword [edx + 0x8a0]
cmp dword [edx + 0x89c], ecx
jne 0x5fd9b0f7
mov eax, ebx
mov dword [ebp - 0xc], 0
sub eax, ecx
mov dword [ebp - 8], eax
je 0x5fd9b09b
cmp eax, dword [edx + 0x890]
jae 0x5fd9b09b
push eax
push ecx
lea eax, [edx + 0xb8]
push eax
call sub.api_ms_win_core_crt_l1_1_0.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x890]
add edx, 0xb8
sub ecx, eax
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [ebp - 8]
push ecx
add eax, edx
mov dword [ebp - 0x10], ecx
push eax
mov eax, dword [ebp - 4]
push dword [eax]
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
test eax, eax
je 0x5fd9b109
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
test ecx, ecx
je 0x5fdb47e4
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, ecx
lea esi, [ebx + 0xb8]
add ebx, 0xb8
add ebx, eax
cmp ecx, edx
mov edx, dword [ebp - 4]
jb 0x5fd9b4fb
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 0x3e8
jb 0x5fd9afe3
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi], 0
inc esi
mov dword [edx + 0x8a0], esi
mov eax, 1
mov dword [edx + 0x894], esi
mov dword [edx + 0x898], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edx + 0x8a4], 1
cmp edi, 2
je 0x5fdad373
cmp edi, 3
je 0x5fdad380
mov byte [ebx], 0
inc ebx
jmp 0x5fd9b0f7
xor eax, eax
mov word [ebx], ax
add ebx, 2
jmp 0x5fd9b0f7
xor eax, eax
mov word [ebx], ax
add ebx, 2
jmp 0x5fd9b0f7
mov al, byte [esi]
cmp al, 0xd
jne 0x5fdb477f
cmp byte [esi + 1], 0
je 0x5fdb47a3
cmp al, 0xa
jne 0x5fdb4799
cmp byte [esi + 1], 0
jmp 0x5fdb4797
cmp byte [esi], 0
jne 0x5fdb4799
mov al, byte [esi + 1]
cmp al, 0xd
je 0x5fdb47a3
cmp al, 0xa
je 0x5fdb47a3
cmp word [esi], 0
jne 0x5fd9b009
xor eax, eax
mov word [esi], ax
add esi, 2
jmp 0x5fd9b005
mov al, byte [esi]
cmp al, 0xd
jne 0x5fdb47bc
cmp byte [esi + 1], 0
je 0x5fdb4809
cmp al, 0xa
jne 0x5fdb47d6
cmp byte [esi + 1], 0
jmp 0x5fdb47d4
cmp byte [esi], 0
jne 0x5fdb47d6
mov al, byte [esi + 1]
cmp al, 0xd
je 0x5fdb4809
cmp al, 0xa
je 0x5fdb4809
cmp word [esi], 0
je 0x5fdb4809
add esi, 2
jmp 0x5fd9b049
test edx, edx
jne 0x5fd9b0d6
mov eax, dword [ebp - 4]
mov dword [eax + 0x8a0], esi
mov dword [eax + 0x894], esi
mov dword [eax + 0x898], ebx
lea eax, [edx + 1]
jmp 0x5fd9b12d
xor eax, eax
mov word [esi], ax
add esi, 2
jmp 0x5fd9b116