Function at 0x427ab0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x18], 0
call fcn.004472b0
mov ebp, eax
test ebp, ebp
je 0x427e3b
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push ebp
call esi
push 0
push 0
push 0
push ebp
mov edi, eax
call esi
lea ecx, [edi + 8]
push ecx
push 0
push dword [0x491954]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
lea ecx, [esp + 0x24]
mov dword [0x4882f4], eax
push ecx
push edi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x4882f4]
cmp dword [esi], 0x50555245
lea eax, [esi + edi]
mov dword [esp + 0x20], eax
jne 0x427e24
mov eax, dword [esi + 8]
sub eax, 0x4c494233
cmp eax, 1
ja 0x427e07
mov ecx, dword [esi + 4]
lea eax, [esi + 0xc]
add ecx, eax
mov dword [0x4882f4], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x49b1f4]
call fcn.00427230
mov ebx, eax
mov eax, dword [esi + 8]
cmp eax, 0x4c494234
jne 0x427b81
mov ecx, dword [0x4882f4]
mov byte [ebx + 0xc], 4
mov ebp, dword [ecx]
add ecx, 4
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
jmp 0x427b9c
cmp eax, 0x4c494233
mov eax, dword [0x4882f4]
lea ecx, [eax + 4]
jne 0x427b96
mov byte [ebx + 0xc], 3
jmp 0x427b9a
mov byte [ebx + 0xc], 2
mov ebp, dword [eax]
lea eax, [ecx + 4]
mov dword [esp + 0x10], ebp
mov dword [ebx + 8], eax
cmp byte [eax], 0
je 0x427bb6
jmp 0x427bb0
inc eax
cmp byte [eax], 0
jne 0x427bb0
push str.debuggerfunctions
push dword [ebx + 8]
inc eax
mov dword [0x4882f4], eax
call fcn.0044e716
add esp, 8
test eax, eax
jne 0x427bd8
mov dword [esp + 0x18], 1
mov ecx, dword [0x4882f4]
xor esi, esi
mov dword [ebx + 0x38], 0
movsx ax, byte [ecx]
lea edx, [ecx + 2]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov word [ebx + 0x3c], ax
movsx edi, byte [ecx + 1]
mov ecx, edx
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x30], edx
test edi, edi
jle 0x427c2e
mov eax, edx
cmp byte [edx], 0
je 0x427c22
cmp byte [ecx + 1], 0
lea eax, [ecx + 1]
mov ecx, eax
jne 0x427c17
lea edx, [eax + 1]
inc esi
mov ecx, edx
mov eax, edx
cmp esi, edi
jl 0x427c12
movsx eax, byte [edx]
inc ecx
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x48], ecx
cmp byte [ecx], 0
je 0x427c46
lea ecx, [ecx]
inc ecx
cmp byte [ecx], 0
jne 0x427c40
movsx eax, byte [ecx + 1]
add ecx, 2
mov dword [ebx + 0x44], eax
mov dword [0x4882f4], ecx
test eax, eax
je 0x427c97
mov dl, byte [ecx]
test dl, dl
je 0x427c76
mov esi, ecx
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x427c6e
sub dl, 0x20
mov byte [esi], dl
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x427c62
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x40], ecx
test eax, eax
jle 0x427c97
cmp byte [ecx], 0
je 0x427c8b
inc ecx
cmp byte [ecx], 0
jne 0x427c85
inc ecx
sub eax, 1
jne 0x427c80
mov dword [0x4882f4], ecx
mov eax, dword [0x4a9cc8]
mov esi, dword [esp + 0x1c]
mov dword [eax], 0
cmp ecx, esi
jae 0x427cdd
mov edi, dword [esp + 0x18]
mov edi, edi
cmp dword [0x4afc48], 0
jne 0x427cdd
inc word [ebx + 0xe]
mov ecx, ebx
call fcn.00427810
test eax, eax
je 0x427cd3
test edi, edi
je 0x427cd3
or dword [eax + 0x24], 0x200
mov ecx, dword [0x4882f4]
cmp ecx, esi
jb 0x427cb0
cmp dword [ecx], 0x50555245
jne 0x427e4d
cmp dword [ecx + 8], 0x44415431
jne 0x427e4d
lea eax, [ecx + 0xc]
mov dword [ebx + 0x1c], eax
mov edi, dword [ecx + 4]
mov cl, byte [ebx + 0xc]
mov dword [0x4882f4], eax
mov dword [ebx + 0x20], edi
cmp cl, 4
jl 0x427d14
and ebp, 1
jmp 0x427d53
lea esi, [eax + edi]
mov edx, 0xc3500
cmp eax, esi
jae 0x427d36
mov ecx, eax
mov eax, dword [ecx]
not eax
sub eax, edx
add edx, edi
mov dword [ecx], eax
add ecx, 4
cmp ecx, esi
jb 0x427d22
mov cl, byte [ebx + 0xc]
mov ebp, dword [ebx + 0x20]
mov eax, dword [esp + 0x10]
add ebp, 3
and ebp, 0xfffffffc
and eax, 1
mov dword [esp + 0x1c], eax
mov edi, ebp
cmp cl, 4
jl 0x427d89
mov ebp, eax
test ebp, ebp
je 0x427dbd
push dword [esp + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
push dword [0x491954]
call eax
push dword [ebx + 0x20]
mov esi, eax
lea edx, [esp + 0x18]
push dword [ebx + 0x1c]
mov ecx, esi
call fcn.00439330
mov eax, dword [esp + 0x1c]
add esp, 8
mov dword [ebx + 0x20], eax
jmp 0x427dba
test eax, eax
je 0x427dbd
push dword [ebx + 0x1c]
call fcn.00401000
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [edi + 8]
push ecx
push 0
push dword [0x491954]
call eax
mov esi, eax
push esi
push dword [ebx + 0x1c]
call fcn.004011f4
mov dword [ebx + 0x20], edi
mov edi, ebp
mov dword [ebx + 0x1c], esi
mov edx, dword [0x4882f4]
add edx, edi
mov dword [ebx + 0x28], 0
mov dword [0x4882f4], edx
cmp edx, dword [esp + 0x20]
jae 0x427e4d
cmp dword [edx], 0x50555245
jne 0x427e4d
cmp dword [edx + 8], 0x44424731
jne 0x427e4d
lea ecx, [edx + 0xc]
mov dword [ebx + 0x28], ecx
mov eax, dword [edx + 4]
mov dword [ebx + 0x2c], eax
mov eax, dword [edx + 4]
add eax, ecx
mov dword [0x4882f4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ecx, ebx
call fcn.00446f70
push eax
push 0x117
call fcn.00412c30
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push esi
push 0
push dword [0x491954]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ecx, ebx
call fcn.00446f70
push eax
push 0x60
call fcn.00412c30
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret