Function at 0x419b4c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
cmp dword [ebx], 0
je 0x419bda
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov eax, 0x6d53c0
xor ecx, ecx
test eax, eax
je 0x419b9e
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
xor ebx, ebx
test eax, eax
je 0x419bb1
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x419bc8
dec eax
test ecx, ecx
je 0x419bc8
call fcn.00403064
add esp, 0xc
test eax, eax
je 0x419bda
mov eax, 1
jmp 0x419bdf
mov eax, 0
test eax, eax
je 0x419d46
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x14], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx]
test eax, eax
jne 0x419c07
mov eax, 0x6d53c0
push eax
push 1
mov ebx, 0x47fe40
call fcn.0047f8ff
add esp, 0x10
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0x40
push dword [ebp - 4]
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call sub.KERNEL32.dll_VirtualProtect_1
cmp dword [ebp - 0x18], esp
je 0x419c5a
push 0xb4
push 0x4019781
push 6
call fcn.0047f8f3
add esp, 0xc
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x18], ebx
push dword [ebp - 0x18]
call fcn.00419ac8
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
push dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call fcn.00419a5c
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov eax, 0x6d53c0
test eax, eax
je 0x419cdd
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0047f8e7
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x14]
mov ebx, dword [ebx]
test ebx, ebx
je 0x419cf0
push ebx
call fcn.0047f8ed
add esp, 4
pop eax
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
cmp dword [ebp - 8], 0x40
je 0x419d46
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
mov eax, 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call sub.KERNEL32.dll_VirtualProtect_1
cmp dword [ebp - 0x18], esp
je 0x419d46
push 0x22c
push 0x4019781
push 6
call fcn.0047f8f3
add esp, 0xc
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
cmp dword [ebx], 0
je 0x419e34
mov dword [ebp - 0x14], esp
call sub.KERNEL32.dll_GetProcessHeap_1
cmp dword [ebp - 0x14], esp
je 0x419d81
push 0x2cc
push 0x4019781
push 6
call fcn.0047f8f3
add esp, 0xc
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x14]
call fcn.00419a0c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x419dd8
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
push 0
push dword [ebp - 0xc]
mov eax, 0x19
call fcn.0047f905
cmp dword [ebp - 0x14], esp
je 0x419dd8
push 0x353
push 0x4019781
push 6
call fcn.0047f8f3
add esp, 0xc
push dword [ebp + 8]
call fcn.00419a0c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 0x14]
push 0
push dword [ebp - 0xc]
mov eax, 0x19
call fcn.0047f905
cmp dword [ebp - 0x18], esp
je 0x419e17
push 0x3b4
push 0x4019781
push 6
call fcn.0047f8f3
add esp, 0xc
push dword [ebp + 8]
call fcn.00419a28
mov dword [ebp - 0x14], eax
push 0
push 0
push dword [ebp - 0x14]
call fcn.00419a44
mov esp, ebp
pop ebp
ret 4