Function at 0x4e5c10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5863ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x18], esi
mov dword [esi + 4], esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], esi
mov dword [esi + 0x10], esi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi], 0x58b228
mov byte [esi + 0x3e], bl
mov byte [esi + 0x14], bl
mov byte [esi + 0x44], bl
mov byte [esi + 0x60], 1
mov byte [esi + 0x15], bl
mov byte [esi + 0x16], bl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov byte [esi + 0x17], bl
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x3c], 1
mov dword [esi + 0x40], ebx
mov eax, dword [0xb084cc]
cmp eax, ebx
mov dword [esp + 0x24], ebx
je 0x4e5d1e
mov ecx, dword [0xb084b8]
cmp ecx, ebx
jne 0x4e5cc0
mov eax, dword [str.Null_Pointer]
push eax
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov ecx, dword [0xb084b8]
add esp, 0xc
cmp ecx, ebx
jne 0x4e5cc0
call fcn.0052ff20
mov ecx, dword [0xb084b8]
mov eax, dword [ecx + 0x108]
push eax
call fcn.00533cd0
push ebx
push 1
push 8
call fcn.00401180
mov ecx, eax
call fcn.00533b80
mov edi, eax
mov eax, dword [0xb084b8]
cmp eax, ebx
jne 0x4e5d0f
mov ecx, dword [str.Null_Pointer]
push ecx
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov eax, dword [0xb084b8]
add esp, 0xc
cmp eax, ebx
jne 0x4e5d0f
call fcn.0052ff20
mov ecx, dword [0xb084b8]
call fcn.00533d40
mov eax, edi
jmp 0x4e5d47
mov edx, dword [0x5ca258]
mov ecx, dword [edx*4 + 0x5ca24c]
cmp ecx, ebx
je 0x4e5d36
call fcn.005331c0
jmp 0x4e5d47
push ebx
push 1
push 8
call fcn.00401180
mov ecx, eax
call fcn.00533b80
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x24], 1
je 0x4e5d5d
mov ecx, eax
call fcn.00415710
jmp 0x4e5d5f
xor eax, eax
mov ebp, dword [esp + 0x2c]
mov ecx, eax
push ebp
mov byte [esp + 0x28], bl
mov dword [esi + 0x54], eax
call fcn.004159c0
cmp dword [0xb084cc], ebx
je 0x4e5de0
mov ecx, dword [0xb084b8]
cmp ecx, ebx
jne 0x4e5db1
mov eax, dword [str.Null_Pointer]
push eax
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov ecx, dword [0xb084b8]
add esp, 0xc
cmp ecx, ebx
jne 0x4e5db1
call fcn.0052ff20
mov ecx, dword [0xb084b8]
mov eax, dword [ecx + 0x108]
push eax
call fcn.00533cd0
push ebx
push 1
push 8
call fcn.00401180
mov ecx, eax
call fcn.00533b80
mov edi, eax
call fcn.00401180
mov ecx, eax
call fcn.00533d40
mov eax, edi
jmp 0x4e5e09
mov ecx, dword [0x5ca258]
mov ecx, dword [ecx*4 + 0x5ca24c]
cmp ecx, ebx
je 0x4e5df8
call fcn.005331c0
jmp 0x4e5e09
push ebx
push 1
push 8
call fcn.00401180
mov ecx, eax
call fcn.00533b80
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x24], 2
je 0x4e5e1f
mov ecx, eax
call fcn.00415710
jmp 0x4e5e21
xor eax, eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x34], closesocket
mov dword [esi + 0x38], ebx
mov dword [esi + 0x68], ebx
mov edx, dword [0xab5b48]
mov byte [esp + 0x24], bl
mov ecx, dword [edx + 0x20]
call fcn.004dc7c0
mov dword [esi + 0x1c], eax
lea eax, [esp + 0x14]
push ebx
push eax
push str.goal_flags
mov ecx, ebp
call fcn.00418410
test al, al
je 0x4e5e93
mov ecx, dword [esp + 0x14]
xor edi, edi
cmp dword [ecx + 8], ebx
jbe 0x4e5e93
push ebx
push edi
call fcn.00408850
mov ecx, dword [esi + 0x58]
push eax
call fcn.00416660
mov edx, dword [esi + 0x4c]
mov ecx, dword [esp + 0x14]
inc edx
inc edi
mov dword [esi + 0x4c], edx
mov eax, dword [ecx + 8]
cmp edi, eax
jb 0x4e5e70
mov ecx, dword [esi + 0x4c]
push ecx
mov ecx, dword [esi + 0x54]
push str.num_flags
call fcn.00416800
lea eax, [esi + 0x5c]
push ebx
push eax
push 0x9e4bbef5
mov ecx, ebp
mov dword [eax], 0xffffffff
call fcn.00418060
test al, al
je 0x4e5ec5
mov byte [esi + 0x18], 1
jmp 0x4e5f0a
push 0x8a3a324e
mov ecx, ebp
call fcn.00418740
test al, al
je 0x4e5edb
mov byte [esi + 0x18], 1
jmp 0x4e5f0a
push 0xd303a1a3
mov ecx, ebp
call fcn.00418740
test al, al
je 0x4e5ef1
mov byte [esi + 0x18], 1
jmp 0x4e5f0a
push 0xe0f96410
mov ecx, ebp
call fcn.00418740
test al, al
je 0x4e5f07
mov byte [esi + 0x18], 1
jmp 0x4e5f0a
mov byte [esi + 0x18], bl
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4