Function at 0x4d0570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0c1d
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x6510e8]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x5c], ecx
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4d05ab
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
push eax
mov dword [ebp - 0x64], ecx
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x60], eax
call fcn.004e5020
add esp, 8
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004e53d0
cmp dword [eax + 0x14], 0x10
jb 0x4d05da
mov eax, dword [eax]
push 0x61a7d0
push eax
call fcn.005916a6
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x58], ebx
cmp eax, 0x10
jb 0x4d0620
mov ecx, dword [ebp - 0x30]
inc eax
cmp eax, 0x1000
jb 0x4d0616
mov edx, dword [ecx - 4]
add eax, 0x23
sub ecx, edx
sub ecx, 4
cmp ecx, 0x1f
ja 0x4d07df
mov ecx, edx
push eax
push ecx
call fcn.005815c4
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp ecx, 0x10
jb 0x4d066d
mov eax, dword [ebp - 0x48]
inc ecx
cmp ecx, 0x1000
jb 0x4d0663
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
sub eax, 4
cmp eax, 0x1f
ja 0x4d07df
mov eax, edx
push ecx
push eax
call fcn.005815c4
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
test ebx, ebx
jne 0x4d068a
xor al, al
jmp 0x4d07c1
push ebx
push 8
lea eax, [ebp - 0x18]
mov byte [ebp - 0x49], 0
push 1
push eax
call fcn.0059004a
push 8
xor edx, edx
lea ecx, [ebp - 0x18]
call fcn.0053eb90
add esp, 0x14
test eax, eax
jne 0x4d07b5
sub esp, 8
call fcn.00539370
mov esi, eax
add esp, 8
mov dword [ebp - 0x54], esi
test esi, esi
je 0x4d07b5
mov eax, dword [esi + 0x25c]
push pe_nt_image_headers32
test eax, eax
je 0x4d06e2
push esi
call eax
add esp, 8
jmp 0x4d06ea
call fcn.00590bba
add esp, 4
mov edi, eax
test edi, edi
je 0x4d0700
push pe_nt_image_headers32
push 0
push edi
call fcn.00583340
add esp, 0xc
mov dword [ebp - 0x50], edi
test edi, edi
je 0x4d0756
push ecx
mov ecx, esi
call fcn.005391c0
mov ecx, dword [ebp - 4]
push 0x648a2c
push ecx
push 0x582951
push 3
push eax
call fcn.005ab300
mov esi, dword [ebp - 0x54]
add esp, 0x18
mov ebx, dword [ebp - 0x58]
test eax, eax
jne 0x4d0753
test esi, esi
je 0x4d0740
mov dword [esi + 0x60], ebx
mov byte [esi + 0x155], 8
mov edi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x5c]
push edi
push esi
call fcn.004d0080
mov byte [ebp - 0x49], 1
jmp 0x4d0756
mov edi, dword [ebp - 0x50]
test esi, esi
je 0x4d07b5
test edi, edi
je 0x4d07a0
push 0xffffffffffffffff
push 0xffff
mov edx, edi
mov dword [ebp - 0x50], 0
mov ecx, esi
call fcn.0053f130
push pe_nt_image_headers32
push 0
push edi
call fcn.00583340
mov eax, dword [esi + 0x260]
add esp, 0x14
push edi
test eax, eax
je 0x4d0798
push esi
call eax
add esp, 8
jmp 0x4d07a0
call fcn.00586361
add esp, 4
mov ecx, esi
mov dword [ebp - 0x54], 0
call fcn.00539da0
mov ecx, esi
call fcn.00543a80
push ebx
call fcn.0058b355
mov al, byte [ebp - 0x49]
add esp, 4
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.00581335
mov esp, ebp
pop ebp
ret 4
call fcn.00586698
int3