Function at 0x4d5345
Capabilities:
Read file on windows

Disassembly:
push 0x74
mov eax, 0x5287ec
call fcn.00452846
mov ebx, ecx
mov eax, dword [ebp + 8]
xor esi, esi
push esi
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x64], esp
xor eax, eax
mov edi, esi
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], esi
push 0x415c68
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], esi
mov word [ecx], ax
call fcn.00444888
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x5c], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], esi
push 0x414aa4
mov dword [ebp - 4], esi
mov word [ecx], ax
call fcn.00444888
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.004d181a
sub esp, 0x10
mov dword [ebp - 0x64], esp
mov ecx, esp
push eax
mov dword [ebp - 4], 1
call fcn.004d133d
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x5c], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], esi
push 0x414ab0
mov byte [ebp - 4], 2
mov word [ecx], ax
call fcn.00444888
lea ecx, [ebx + 0x364]
mov byte [ebp - 4], 1
call fcn.004d1d18
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.0044e8ac
push esi
lea eax, [ebp - 0x48]
push eax
push 4
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d543e
push 0x414a6c
push ebx
call fcn.004d3d0f
mov esi, 0x80004005
jmp 0x4d5450
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x4d5465
push 0x415ca8
push ebx
call fcn.004d3d0f
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.004d21b8
mov eax, esi
jmp 0x4d57b9
mov dword [ebp - 0x58], esi
test eax, eax
je 0x4d57ab
push esi
lea eax, [ebp - 0x48]
push eax
push 4
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d57dd
cmp dword [ebp - 0x44], 0
je 0x4d54ce
push dword [ebp - 0x44]
call fcn.0044f692
mov edi, eax
pop ecx
mov dword [ebp - 0x68], edi
test edi, edi
je 0x4d57c1
mov ecx, dword [ebp - 0x44]
push esi
mov dword [edi], ecx
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x48]
push eax
add ecx, 0xfffffffc
push ecx
lea eax, [edi + 4]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d57dd
push esi
lea eax, [ebp - 0x48]
push eax
push 4
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d57cf
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4d553b
add eax, 8
push eax
call fcn.0044f692
pop ecx
mov dword [ebp - 0x50], eax
test eax, eax
je 0x4d57d6
push esi
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x44]
lea ecx, [eax + 8]
push ecx
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d57cf
mov ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x48], ecx
jne 0x4d57cf
mov eax, dword [ebp - 0x50]
mov dword [eax + 4], ecx
mov dword [eax], 1
push esi
lea eax, [ebp - 0x48]
push eax
push 4
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d57cf
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4d55a4
add eax, 8
push eax
call fcn.0044f692
pop ecx
mov dword [ebp - 0x54], eax
test eax, eax
je 0x4d57d6
push esi
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x44]
lea ecx, [eax + 8]
push ecx
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d57cf
mov ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x48], ecx
jne 0x4d57cf
mov eax, dword [ebp - 0x54]
mov dword [eax + 4], ecx
mov dword [eax], esi
cmp byte [ebx + 0x331], 0
je 0x4d575c
push esi
push esi
sub esp, 0x10
mov dword [ebp - 0x64], esp
mov ecx, esp
push 0x5680b8
call fcn.004d133d
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x5c], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], esi
push 0x414ac0
mov byte [ebp - 4], 5
mov word [ecx], ax
call fcn.00444888
lea ecx, [ebx + 0x364]
mov byte [ebp - 4], 4
call fcn.004d1d18
mov dword [ebp - 0x64], eax
push 0x415d0c
push ebx
mov byte [ebp - 4], 6
call fcn.004d3d0f
mov eax, dword [ebp - 0x58]
inc eax
push eax
push 0x415d34
push ebx
call fcn.004d3d0f
add esp, 0x14
test edi, edi
jne 0x4d5634
push 0x415d48
push ebx
call fcn.004d3d0f
pop ecx
pop ecx
jmp 0x4d5743
push dword [edi + 4]
push 0x415dac
push ebx
call fcn.004d3d0f
push dword [edi + 8]
push 0x415ddc
push ebx
call fcn.004d3d0f
add esp, 0x18
mov ecx, esi
mov dword [ebp - 0x60], esi
cmp dword [edi + 0xc], esi
jbe 0x4d5743
mov eax, dword [edi + 0x10]
mov edx, esi
mov dword [ebp - 0x5c], esi
test eax, eax
je 0x4d5726
imul eax, ecx
add eax, edx
push 0xc
imul eax, eax, 0x30
pop ecx
push edx
push dword [ebp - 0x60]
lea esi, [edi + 0x18]
add esi, eax
push 0x415e0c
lea edi, [ebp - 0x40]
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.004d3d0f
mov eax, dword [ebp - 0x40]
xor esi, esi
add esp, 0x10
sub eax, esi
je 0x4d56b5
dec eax
je 0x4d56ae
dec eax
jne 0x4d56c2
push 0x415e40
jmp 0x4d56ba
push 0x415e38
jmp 0x4d56ba
push 0x415e2c
push ebx
call fcn.004d3d0f
pop ecx
pop ecx
push 0x415e50
push ebx
call fcn.004d3d0f
pop ecx
pop ecx
cmp dword [ebp - 0x40], esi
je 0x4d570e
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x3c]
push 0x415e54
push ebx
call fcn.004d3d0f
push dword [ebp - 0x38]
push 0x415e68
push ebx
call fcn.004d3d0f
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 0x415e84
push ebx
call fcn.004d3d0f
add esp, 0x34
mov edx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x68]
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x60]
inc edx
mov dword [ebp - 0x5c], edx
cmp edx, eax
jb 0x4d5671
push 0x413c9c
push ebx
call fcn.004d3d0f
pop ecx
pop ecx
mov ecx, dword [ebp - 0x60]
inc ecx
mov dword [ebp - 0x60], ecx
cmp ecx, dword [edi + 0xc]
jb 0x4d5661
push dword [ebp - 0x54]
mov ecx, ebx
push dword [ebp - 0x58]
call fcn.004d52fb
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.004d21b8
push dword [ebp - 0x50]
mov ecx, ebx
push dword [ebp - 0x58]
call fcn.004d52fb
test edi, edi
je 0x4d5779
push edi
call fcn.0044f67d
mov edi, esi
pop ecx
mov dword [ebp - 0x68], edi
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x4d578a
push ecx
call fcn.0044f67d
pop ecx
mov dword [ebp - 0x50], esi
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4d579b
push eax
call fcn.0044f67d
pop ecx
mov dword [ebp - 0x54], esi
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp eax, dword [ebp - 0x70]
jb 0x4d5470
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004d21b8
xor eax, eax
call fcn.004528d8
ret 4
push 0x415ce0
push ebx
call fcn.004d3d0f
pop ecx
jmp 0x4d57f4
push 0x415cf0
jmp 0x4d57e2
push 0x415ce0
jmp 0x4d57e2
push 0x414a6c
push ebx
call fcn.004d3d0f
pop ecx
pop ecx
test edi, edi
je 0x4d57f5
push edi
call fcn.0044f67d
pop ecx
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4d5803
push eax
call fcn.0044f67d
pop ecx
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4d5811
push eax
call fcn.0044f67d
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004d21b8
mov eax, 0x80004005
jmp 0x4d57b9