Function at 0x4d5930
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575eed
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5e8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push 0x400
call fcn.004b89e0
mov esi, dword [ebp - 0x20]
test al, al
jne 0x4d5987
mov edi, 3
jmp 0x4d5b31
xorps xmm0, xmm0
xor edx, edx
xor eax, eax
movlpd qword [ebp - 0x34], xmm0
xor edi, edi
nop word [eax + eax]
mov ebx, dword [ebp + 8]
add eax, 0xa
sub edi, 0x400
mov dword [ebp - 0x10], eax
inc edx
mov dword [ebp - 0x18], edi
mov eax, edi
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 1
cdq
mov ecx, eax
mov edi, edx
jle 0x4d59cb
mov eax, dword [ebp - 0x10]
cdq
add ecx, eax
adc edi, edx
push 2
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], edi
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x4d59f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4d5b2c
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x400
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d5b2c
cmp dword [ebp - 0x1c], 0x400
jne 0x4d5b2c
mov eax, dword [ebp - 0x10]
lea ebx, [esi + 0x3f6]
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
cmp ebx, esi
jb 0x4d59a0
mov edx, ebx
mov eax, str.ADVINSTSFX
mov edi, 6
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x4d5a51
add edx, 4
add eax, 4
sub edi, 4
jae 0x4d5a40
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x4d5a78
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x4d5a78
cmp edi, 0xfffffffe
je 0x4d5a74
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x4d5a78
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
jne 0x4d5a78
xor eax, eax
jmp 0x4d5a7d
sbb eax, eax
or eax, 1
test eax, eax
je 0x4d5a94
dec ebx
cmp ebx, esi
jae 0x4d5a31
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
jmp 0x4d59a0
sub ebx, esi
jns 0x4d5aa6
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
jmp 0x4d59a0
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x30]
mov edi, dword [ebp + 8]
add eax, 0xffffffc0
push 0
add eax, ebx
mov dword [ebp - 0x30], 0
push ecx
push eax
push edi
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4d5b2c
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
push 0
push eax
push 0x4a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d5b2c
cmp dword [ebp - 0x1c], 0
je 0x4d5b2c
mov eax, dword [ebx + 0x40]
mov ecx, str.ADVINSTSFX
cmp eax, dword [ecx]
jne 0x4d5b0f
mov eax, dword [ebx + 0x44]
cmp eax, dword [ecx + 4]
jne 0x4d5b0f
movzx eax, word [ebx + 0x48]
cmp ax, word [ecx + 8]
jne 0x4d5b0f
cmp dword [ebx + 0xc], 0x64
je 0x4d5b16
mov edi, 5
jmp 0x4d5b31
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebx + 0x10]
mov eax, dword [ebp - 0x30]
sbb eax, 0
mov dword [ebx + 0x50], ecx
mov dword [ebx + 0x54], eax
xor edi, edi
jmp 0x4d5b31
mov edi, 2
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.0052e812
add esp, 4
mov dword [ebp - 0x20], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4