Function at 0x4d4920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5d3070]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 4]
mov dword [esp + 8], ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov esi, dword [ebp + 8]
push edi
test eax, eax
jne 0x4d4955
mov dword [esp + 0x18], 0
jmp 0x4d4965
push 0
push 0
push 0x445
push eax
call ebx
mov dword [esp + 0x18], eax
mov ecx, esi
call fcn.00504520
test al, al
jne 0x4d4986
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0053f778
mov esp, ebp
pop ebp
ret 4
xor edi, edi
cmp dword [esi + 0x14], 8
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], edi
jb 0x4d499a
mov eax, dword [esi]
jmp 0x4d499c
mov eax, esi
push 0x5a95ac
push eax
lea eax, [esp + 0x28]
push eax
call fcn.005532d2
mov eax, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
je 0x4d4970
push eax
push 2
lea eax, [esp + 0x38]
mov byte [esp + 0x38], 0
xor ecx, ecx
push 1
push eax
mov word [esp + 0x41], cx
call fcn.005534f0
add esp, 0x10
cmp byte [esp + 0x30], 0xff
jne 0x4d49ed
cmp byte [esp + 0x31], 0xfe
mov eax, 0x10
cmove edi, eax
mov dword [esp + 0x10], edi
push dword [esp + 0x20]
call fcn.00553616
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x4d4a03
mov eax, dword [esi]
jmp 0x4d4a05
mov eax, esi
push 0
push 0
push 3
push 0
push 1
push Ordinal_1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x4d4970
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x5a6f3c
mov ecx, esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0x4d4330
call fcn.004d4d20
inc eax
mov ecx, esi
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00497ad0
cmp dword [esp + 0x48], 8
lea ecx, [esp + 0x34]
mov edx, dword [esp + 0x44]
mov esi, 3
cmovae ecx, dword [esp + 0x34]
mov edi, esi
cmp edx, esi
cmovb edi, edx
test edi, edi
je 0x4d4a98
mov edx, 0x5a95b0
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4d4aed
add ecx, 2
add edx, 2
sub edi, 1
jne 0x4d4a81
mov edx, dword [esp + 0x44]
xor eax, eax
test eax, eax
jne 0x4d4aa4
cmp edx, esi
jb 0x4d4aa4
jbe 0x4d4ae4
cmp dword [esp + 0x48], 8
lea ecx, [esp + 0x34]
cmovae ecx, dword [esp + 0x34]
cmp edx, esi
cmovb esi, edx
test esi, esi
je 0x4d4ad7
mov edx, 0x5a95b8
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4d4aff
add ecx, 2
add edx, 2
sub esi, 1
jne 0x4d4ac0
mov edx, dword [esp + 0x44]
xor eax, eax
test eax, eax
jne 0x4d4b11
cmp edx, 3
jb 0x4d4b11
ja 0x4d4b11
lea eax, [esp + 0x24]
push eax
push 2
jmp 0x4d4b1e
movzx eax, word [ecx]
cmp ax, word [edx]
mov edx, dword [esp + 0x44]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x4d4a9a
movzx eax, word [ecx]
cmp ax, word [edx]
mov edx, dword [esp + 0x44]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x4d4ad9
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
or eax, 1
push eax
mov esi, dword [esp + 0x1c]
push 0x449
push dword [esi + 4]
call ebx
push dword [esp + 0x1c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
push 0xb9
push dword [esi + 4]
call ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x4d4b67
push 0
push 7
push 0xb5
push eax
call ebx
push 0
push 6
push 0xb5
push dword [esi + 4]
call ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x4d4b7c
push dword [esp + 0x18]
push 0
push 0x445
push eax
call ebx
lea ecx, [esp + 0x34]
call fcn.00403280
mov ecx, dword [esp + 0x4c]
test edi, edi
pop edi
pop esi
setne al
pop ebx
xor ecx, esp
call fcn.0053f778
mov esp, ebp
pop ebp
ret 4