Function at 0x4e9440
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x61d8
call fcn.005d9990
push ebx
push ebp
mov ebp, dword [esp + 0x61f4]
xor ebx, ebx
cmp ebp, ebx
push esi
push edi
je 0x4e945e
mov dword [ebp], ebx
lea eax, [esp + 0x30b0]
or esi, 0xffffffff
push 0x1068
push eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 0x2000
call fcn.004232e0
lea ecx, [esp + 0x4120]
push 0x1068
push ecx
call fcn.004232e0
lea edx, [esp + 0x5190]
push 0x1068
push edx
call fcn.004232e0
lea eax, [esp + 0x2060]
push 0x1068
push eax
call fcn.004232e0
mov eax, dword [esp + 0x6214]
add esp, 0x20
and eax, 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], eax
je 0x4e958d
mov ecx, dword [esp + 0x61f8]
push ecx
call fcn.0058ed20
add esp, 4
test eax, eax
je 0x4e9506
lea edx, [esp + 0x30b0]
push 3
push edx
call fcn.00565af0
add esp, 8
lea eax, [esp + 0x4118]
push eax
push 0xe7d
call fcn.00424130
lea eax, [esp + 0x4120]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4e9525
lea ecx, [esp + 0x5180]
push ecx
sub eax, edx
push 0xe75
mov dword [esp + 0x3c], eax
call fcn.00424130
lea eax, [esp + 0x5188]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4e9551
sub eax, edx
lea edx, [esp + 0x2048]
push edx
push 0xe76
mov dword [esp + 0x34], eax
call fcn.00424130
lea eax, [esp + 0x2050]
add esp, 8
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4e9580
sub eax, edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x61ec]
push ebx
push 0x80
push 3
push ebx
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x10], edi
jne 0x4e95cd
cmp ebp, ebx
je 0x4e95c0
mov dword [ebp], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x61d8
ret
push 2
push ebx
push ebx
push edi
call fcn.0049d260
mov esi, eax
mov ecx, edx
mov edx, esi
and edx, ecx
add esp, 0x10
cmp edx, 0xffffffff
jne 0x4e9610
cmp ebp, ebx
je 0x4e9841
mov dword [ebp], 1
jmp 0x4e9841
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x61fc]
lea ebx, [ebx]
mov eax, dword [esp + 0x18]
cdq
cmp edx, ecx
jl 0x4e9623
jg 0x4e961f
cmp eax, esi
jbe 0x4e9623
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x18]
cdq
sub esi, eax
mov eax, dword [esp + 0x38]
sbb ecx, edx
cmp esi, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
jne 0x4e9646
cmp ecx, dword [esp + 0x3c]
je 0x4e9841
push ebx
push ecx
push esi
push edi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ecx
call fcn.0049d260
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4e95e7
lea eax, [esp + 0x40]
push 0x2008
push eax
mov dword [esp + 0x1c], ebx
call fcn.004232e0
mov edx, dword [esp + 0x20]
add esp, 8
push ebx
lea ecx, [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e95e7
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x4e9841
dec ecx
xor ebp, ebp
cmp ebp, ebx
mov dword [esp + 0x14], ecx
mov edi, ecx
jl 0x4e9811
jg 0x4e96c3
cmp edi, ebx
jb 0x4e9811
jmp 0x4e96c3
mov ecx, dword [esp + 0x14]
mov al, byte [esp + edi + 0x40]
cmp al, 0xd
je 0x4e96d9
cmp al, 0xa
je 0x4e96d9
mov edx, edi
or edx, ebp
jne 0x4e97e5
xor eax, eax
cmp ebp, eax
jg 0x4e97b4
jl 0x4e96ed
cmp edi, ecx
jae 0x4e97b4
mov eax, edi
or eax, ebp
lea esi, [esp + 0x40]
je 0x4e96fb
lea esi, [esp + edi + 0x41]
cmp dword [esp + 0x28], ebx
je 0x4e976a
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
lea ecx, [esp + 0x2054]
push ecx
lea edx, [esp + 0x5190]
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x412c]
push eax
mov eax, dword [esp + 0x6210]
lea ecx, [esp + 0x30c8]
push ecx
push esi
push edx
push eax
call fcn.004e91e0
mov esi, eax
mov al, byte [esp + 0x621c]
add esp, 0x28
test al, 2
je 0x4e976a
push 0x6813e8
push esi
call fcn.005f1860
add esp, 8
test eax, eax
jne 0x4e976a
mov esi, 0x5f4c90
cmp dword [esp + 0x61f4], ebx
je 0x4e977d
cmp dword [esp + 0x28], ebx
je 0x4e97b0
cmp byte [esi], bl
je 0x4e97b0
mov eax, dword [esp + 0x61f0]
cmp eax, ebx
jle 0x4e983d
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
dec eax
push esi
push ecx
mov dword [esp + 0x6200], eax
call fcn.004e9380
add esp, 0x10
cmp eax, ebx
je 0x4e982c
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x20]
cmp byte [esp + edi + 0x40], 0xa
mov byte [esp + edi + 0x40], bl
jne 0x4e97db
cmp ebp, ebx
jl 0x4e9811
jg 0x4e97c9
cmp edi, ebx
jbe 0x4e97ff
mov al, byte [esp + edi + 0x3f]
add edi, 0xffffffff
adc ebp, 0xffffffff
cmp al, 0xd
jne 0x4e97eb
mov byte [esp + edi + 0x40], bl
cmp ebp, ebx
jl 0x4e9811
jg 0x4e97e5
cmp edi, ebx
jbe 0x4e97ff
add edi, 0xffffffff
adc ebp, 0xffffffff
cmp ebp, ebx
jg 0x4e96bf
jl 0x4e9811
cmp edi, ebx
jae 0x4e96bf
jmp 0x4e9811
cmp ebp, ebx
jg 0x4e95fb
jl 0x4e9811
cmp edi, ebx
jae 0x4e95fb
lea eax, [esp + 0x40]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4e9818
sub eax, edx
add esi, eax
adc dword [esp + 0x24], ebx
jmp 0x4e95fb
mov eax, dword [esp + 0x61fc]
cmp eax, ebx
je 0x4e983d
mov dword [eax], 1
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x61d8
ret