Function at 0x1001b245
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
cmp dword [0x1012da93], 0
je 0x1001b275
jmp 0x1001b52c
mov eax, 0x1008c502
test eax, eax
je 0x1001b291
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1007079c
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001b2a2
push ebx
call fcn.100707a2
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 8]
push eax
push 0x40
push 0x7d0
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1001b2e0
push 0xe2
push 0x4014fd5
push 6
call fcn.100707a8
add esp, 0xc
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0x7d0
push dword [ebp + 8]
push 0xffffffff
call fcn.1001b552
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1001b316
push ebx
call fcn.100707a2
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push 0x1008c518
mov ecx, 2
call fcn.10002088
add esp, 8
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push getsockname
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1001b34b
mov eax, 0x10089277
push eax
push getsockname
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x1001b35f
mov eax, 0x10089277
push eax
push 3
mov ebx, 0x1ac
call fcn.10072f40
add esp, 0x28
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1001b385
push ebx
call fcn.100707a2
add esp, 4
cmp dword [ebp - 0x14], 0xffffffff
je 0x1001b3de
mov ebx, 6
call fcn.10002c37
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
push 0x1008c523
push 4
mov ebx, 0x300
call fcn.100715e0
add esp, 0x34
push 0
call fcn.100707c0
add esp, 4
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
call fcn.1000919f
fild dword [ebp + 8]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fsub qword [0x1008c273]
fstp qword [ebp - 0x1c]
mov dword [ebp - 0x20], esp
lea eax, [ebp - 8]
push eax
push 0x40
push 1
fld qword [ebp - 0x1c]
call fcn.10001b73
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x1001b430
push 0x253
push 0x4014fd5
push 6
call fcn.100707a8
add esp, 0xc
fild dword [ebp + 8]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fsub qword [0x1008c273]
fstp qword [ebp - 0x1c]
push 0x80000301
push 0
push 1
fld qword [ebp - 0x1c]
call fcn.10001b73
push 0x80000301
push 0
push eax
push 2
mov ebx, 0x910
call fcn.10072c50
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov eax, 0x1008c542
xor ecx, ecx
test eax, eax
je 0x1001b481
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0x20]
xor ebx, ebx
test eax, eax
je 0x1001b492
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x1001b4a9
dec eax
test ecx, ecx
je 0x1001b4a9
call fcn.1001b199
add esp, 0xc
test eax, eax
mov eax, 0
sete al
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x1001b4c9
push ebx
call fcn.100707a2
add esp, 4
cmp dword [ebp - 0x24], 0
je 0x1001b522
mov ebx, 6
call fcn.10002c37
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
push 0x1008c54b
push 4
mov ebx, 0x300
call fcn.100715e0
add esp, 0x34
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
call fcn.1000919f
push 0
call fcn.100707c0
add esp, 4
mov dword [0x1012da93], 1
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001b53c
push ebx
call fcn.100707a2
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1001b54c
push ebx
call fcn.100707a2
add esp, 4
mov esp, ebp
pop ebp
ret 4