Function at 0x4d19f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5681c5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5d8024]
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 ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
sub ecx, 0x10
call fcn.00408b00
add eax, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 1
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x38], 0x5853b8
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 2
or esi, 0xffffffff
cmp edi, esi
jne 0x4d1a71
xor bl, bl
jmp 0x4d1c20
cmp dword [ebx + 8], 1
push 0
jne 0x4d1b5d
push 0
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
push eax
push 0xa
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push edi
movq qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d1ab5
xor bl, bl
jmp 0x4d1c20
cmp dword [ebp - 0x2c], 0xa
je 0x4d1ac2
xor bl, bl
jmp 0x4d1c20
call fcn.004092f0
mov ecx, eax
test ecx, ecx
je 0x4d1c7c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x24]
test eax, 0xffff0000
jne 0x4d1af8
movzx eax, ax
lea ecx, [ebp - 0x28]
push eax
call fcn.00415190
jmp 0x4d1b1c
lea ecx, [ebp - 0x24]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d1b00
sub ecx, edx
lea eax, [ebp - 0x24]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00408e70
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
mov edx, dword [ebp + 8]
call fcn.004a2770
test al, al
je 0x4d1b58
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d1bfc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
jmp 0x4d1c20
jmp 0x4d1c00
xor eax, eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x2c]
push eax
push 5
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d1b82
xor bl, bl
jmp 0x4d1c20
cmp dword [ebp - 0x2c], 5
je 0x4d1b8f
xor bl, bl
jmp 0x4d1c20
call fcn.004092f0
mov ecx, eax
test ecx, ecx
je 0x4d1c86
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x28]
test eax, 0xffff0000
jne 0x4d1bc5
movzx eax, ax
push eax
call fcn.00415190
jmp 0x4d1bcb
push eax
call fcn.00493a00
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
mov edx, dword [ebp + 8]
call fcn.004a2770
test al, al
je 0x4d1c00
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d1bfc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
jmp 0x4d1c20
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d1c1e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, 1
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], 0x5853b8
test edi, edi
je 0x4d1c3d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4d1c5c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.00521dac
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00408fc0
push 0x80004005
call fcn.00408fc0
int3