Function at 0x4ea0e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x220
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
mov ebx, dword [esp + 0x228]
push esi
mov esi, dword [esp + 0x234]
push edi
mov edi, dword [esp + 0x234]
push 0x103
lea eax, [esp + 0x129]
push 0
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], esi
call fcn.005dfd60
add esp, 0xc
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xa
test edi, edi
je 0x4ea14f
push 0x228
push 0
push edi
call fcn.005dfd60
add esp, 0xc
push 0x104
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.005dfd60
push 0
push ebx
mov byte [esp + 0x138], 0
mov byte [esp + 0x34], 0
call fcn.004e2900
add esp, 0x14
test eax, eax
jne 0x4ea1a3
test esi, esi
je 0x4ea188
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x220
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
push 0
push 0xa0
push 3
push 0
push 3
push connect
push ebx
call fcn.004e0400
mov esi, eax
add esp, 0x1c
mov dword [esp + 0x1c], esi
cmp esi, 0xffffffff
jne 0x4ea1e8
push 0x64
call ebp
sub dword [esp + 0x10], 1
jne 0x4ea1b0
or eax, esi
jmp 0x4ea40c
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x18]
push edx
push 3
lea eax, [esp + 0x30]
push eax
push esi
mov dword [esp + 0x24], 1
call ebp
test eax, eax
je 0x4ea2e2
movsx ecx, byte [esp + 0x24]
push ecx
call fcn.005e3ae6
add esp, 4
cmp eax, 0x41
jne 0x4ea2e2
movsx edx, byte [esp + 0x25]
push edx
call fcn.005e3ae6
add esp, 4
cmp eax, 0x56
jne 0x4ea2e2
movsx eax, byte [esp + 0x26]
push eax
call fcn.005e3ae6
add esp, 4
cmp eax, 0x50
jne 0x4ea2e2
mov ebx, dword [sym.imp.KERNEL32.dll__llseek]
push 0
push 0x80
push esi
call ebx
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
lea edx, [esp + 0x30]
push edx
push esi
call ebp
test eax, eax
je 0x4ea2de
movsx eax, byte [esp + 0x24]
push eax
call fcn.005e3ae6
add esp, 4
cmp eax, 0x45
jne 0x4ea2de
movsx ecx, byte [esp + 0x25]
push ecx
call fcn.005e3ae6
add esp, 4
cmp eax, 0x4b
jne 0x4ea2de
push 0
push 0x8c
push esi
call ebx
push 0
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x30]
push eax
push esi
call ebp
test eax, eax
je 0x4ea2de
push 0
push 0x4f
push esi
mov dword [esp + 0x1c], 0
call ebx
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x15
lea edx, [esp + 0x30]
push edx
push esi
call ebp
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
call fcn.004dca10
cmp dword [esp + 0x10], 0
je 0x4ea30b
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4ea303
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
or eax, 0xffffffff
jmp 0x4ea40c
test edi, edi
je 0x4ea40a
lea ecx, [edi + 0x18]
push ecx
push ebx
call fcn.004e1490
add esp, 8
lea edx, [esp + 0x24]
push edx
lea esi, [edi + 0x1c1]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0x60ef34
push 0x6143ec
push esi
call fcn.004e1b10
lea eax, [esp + 0x138]
push eax
push 0x20
push esi
call fcn.004d9490
lea ecx, [esp + 0x144]
push ecx
mov esi, eax
call fcn.005e0909
lea edx, [esp + 0x148]
push edx
push 0x20
push esi
mov dword [edi], eax
call fcn.004d9490
mov esi, eax
lea eax, [esp + 0x154]
push eax
call fcn.004e29e0
add esp, 0x30
cmp eax, 0xffffffff
je 0x4ea391
mov dword [edi + 4], eax
jmp 0x4ea398
mov dword [edi + 4], 1
lea ecx, [esp + 0x128]
push ecx
push 0x20
push esi
call fcn.004d9490
lea edx, [esp + 0x134]
push edx
mov esi, eax
call fcn.005e0909
mov dword [edi + 8], eax
lea eax, [esp + 0x138]
push eax
push 0x3a
push esi
call fcn.004d9490
lea ecx, [esp + 0x144]
push ecx
mov esi, eax
call fcn.005e0909
lea edx, [esp + 0x148]
push edx
push 0x3a
push esi
mov dword [edi + 0xc], eax
call fcn.004d9490
mov esi, eax
lea eax, [esp + 0x154]
push eax
call fcn.005e0909
push esi
mov dword [edi + 0x10], eax
call fcn.005e0909
add esp, 0x34
mov dword [edi + 0x14], eax
xor eax, eax
mov ecx, dword [esp + 0x22c]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x220
ret