Function at 0x10005ca9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp + 4]
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
jge 0x10005d28
mov eax, 0
jmp 0x100067dc
push htons
push 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
jne 0x10005d3d
mov eax, 0x1010b24e
push eax
push 1
mov ebx, 0x194
call fcn.10102400
add esp, 0x10
mov dword [ebp - 0xc], eax
push dword [0x102bd7cf]
call fcn.100015c6
push 1
push 1
lea eax, [ebp - 4]
push eax
call fcn.10003afb
mov dword [ebp - 0x10], eax
mov ebx, dword [0x102bd7d3]
call fcn.10001069
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x10005d9b
push 0x386
push 0x4242654
push 4
call fcn.1010142e
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10005db8
push 0x386
push 0x4242654
push 1
call fcn.1010142e
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x10
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10005e7e
mov ebx, dword [0x102bd7d3]
call fcn.10001069
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x10005e01
push 0x3ed
push 0x4242654
push 4
call fcn.1010142e
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10005e1e
push 0x3ed
push 0x4242654
push 1
call fcn.1010142e
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 0x2c], ebx
push 1
push 2
push dword [ebp - 4]
call fcn.10004660
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fadd qword [0x1010b285]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.1000144d
mov ebx, dword [ebp - 0x2c]
mov dword [ebx], eax
fild dword [ebp + 0xc]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fadd qword [0x1010b30b]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.1000144d
mov dword [ebp - 0x14], eax
jmp 0x10005e9e
fild dword [ebp - 0x14]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x38]
fadd qword [ebp - 0x38]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.1000144d
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x10], 0
jne 0x10005f1e
mov ebx, dword [0x102bd7d3]
call fcn.10001069
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x10005ed2
push 0x533
push 0x4242654
push 4
call fcn.1010142e
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10005eef
push 0x533
push 0x4242654
push 1
call fcn.1010142e
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
fild dword [ebx]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fild dword [ebp - 0x14]
fstp qword [ebp - 0x3c]
fsub qword [ebp - 0x3c]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.1000144d
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jle 0x10005fb4
fild dword [ebp - 0x14]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fild dword [ebp + 0x10]
fstp qword [ebp - 0x3c]
fadd qword [ebp - 0x3c]
fstp qword [ebp - 0x44]
mov ebx, dword [0x102bd7d3]
call fcn.10001069
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x10005f67
push 0x5d3
push 0x4242654
push 4
call fcn.1010142e
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10005f84
push 0x5d3
push 0x4242654
push 1
call fcn.1010142e
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 0x48], ebx
mov ebx, dword [ebp - 0x48]
fild dword [ebx]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x44]
fsub qword [ebp - 0x50]
fcomp qword [0x1010b31b]
fnstsw ax
test ah, 0x41
je 0x10005fb4
xor eax, eax
jmp 0x10005fb9
mov eax, 1
test eax, eax
je 0x10005fe5
push dword [0x102bd7cf]
call fcn.10002410
push 1
push dword [ebp - 4]
push 2
call fcn.10003695
mov eax, 0
jmp 0x100067dc
mov ebx, dword [0x102bd7d3]
call fcn.10001069
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x1000600f
push 0x672
push 0x4242654
push 4
call fcn.1010142e
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000602c
push 0x672
push 0x4242654
push 1
call fcn.1010142e
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x10
mov dword [ebp - 0x2c], ebx
fild dword [ebp - 0x14]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fild dword [ebp + 0x10]
fstp qword [ebp - 0x3c]
fadd qword [ebp - 0x3c]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.1000144d
mov ebx, dword [ebp - 0x2c]
mov dword [ebx], eax
push 1
push 1
push dword [ebp - 8]
call fcn.1000421f
mov dword [ebp - 0x18], eax
mov ebx, dword [0x102bd7d7]
call fcn.10001069
push ebx
push ecx
mov eax, dword [ebp - 0x18]
dec eax
jns 0x10006097
push 0x72b
push 0x4242654
push 4
call fcn.1010142e
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x100060b4
push 0x72b
push 0x4242654
push 1
call fcn.1010142e
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x2c], ebx
push htons
push 0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x100060d6
mov eax, 0x1010b24e
push eax
push 1
mov ebx, 0x194
call fcn.10102400
add esp, 0x10
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x100064ba
mov ebx, dword [0x102bd7d7]
call fcn.10001069
push ebx
push ecx
mov eax, dword [ebp - 0x18]
dec eax
jns 0x10006120
push 0x760
push 0x4242654
push 4
call fcn.1010142e
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000613d
push 0x760
push 0x4242654
push 1
call fcn.1010142e
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x2c], ebx
push htons
push 0
push 0x1010b523
push 0x80000301
push 0
push dword [ebp + 0x10]
push 2
mov ebx, 0x1c0
call fcn.101026d0
add esp, 0x1c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1000618b
push ebx
call fcn.10101422
add esp, 4
pop eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebx], eax
mov ebx, dword [0x102bd7d7]
call fcn.10001069
push ebx
push ecx
mov eax, dword [ebp - 0x18]
dec eax
jns 0x100061bb
push 0x846
push 0x4242654
push 4
call fcn.1010142e
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x100061d8
push 0x846
push 0x4242654
push 1
call fcn.1010142e
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x2c], ebx
push dword [ebp - 0x2c]
call fcn.100020ba
mov dword [ebp - 0x1c], eax
fild dword [ebp + 0x10]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fmul qword [0x1010b53a]
fstp qword [ebp - 0x38]
mov dword [ebp - 0x3c], esp
mov eax, 0
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
push 0x40
fld qword [ebp - 0x38]
call fcn.1000144d
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
nop
nop
cmp dword [ebp - 0x3c], esp
je 0x10006248
push 0x88a
push 0x4242654
push 6
call fcn.1010142e
add esp, 0xc
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push eax
lea eax, [ebp - 0x20]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x100064b2
fild dword [ebp - 0x14]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild dword [ebp - 0x20]
fstp qword [ebp - 0x38]
fadd qword [ebp - 0x38]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.1000144d
push eax
push dword [ebp - 4]
call fcn.1000475f
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x20], eax
jg 0x10006326
mov ebx, dword [ebp + 0x14]
mov ebx, dword [ebx]
call fcn.10001069
push ebx
push ecx
mov eax, dword [ebp - 0x20]
dec eax
jns 0x100062c0
push 0x991
push 0x4242654
push 4
call fcn.1010142e
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x100062dd
push 0x991
push 0x4242654
push 1
call fcn.1010142e
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x2c], ebx
push 0x80000101
push 0
mov ebx, dword [ebp - 0x2c]
mov al, byte [ebx]
push eax
push 1
mov ebx, 0x9dc
call fcn.10102790
add esp, 0x10
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fadd qword [0x1010b285]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.1000144d
mov dword [ebp - 0x28], eax
jmp 0x10006331
push dword [ebp - 0x24]
call fcn.100067e2
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x1000635f
push dword [0x102bd7cf]
call fcn.10002410
push 1
push dword [ebp - 4]
push 3
call fcn.10003695
mov eax, 0
jmp 0x100067dc
push dword [ebp - 0x28]
push 1
push dword [ebp - 0x1c]
call fcn.10006cfb
fild dword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fmul qword [0x1010b30b]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.1000144d
push eax
push 2
push dword [ebp - 0x1c]
call fcn.10006cfb
push dword [ebp - 0x24]
push 6
push dword [ebp - 0x1c]
call fcn.10001ef5
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fadd qword [0x1010b53a]
fstp qword [ebp - 0x38]
fild dword [0x102bd803]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fsub qword [ebp - 0x38]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.1000144d
push eax
push 0xb
push dword [ebp - 0x1c]
call fcn.10001ef5
mov ebx, dword [0x102bd7d3]
call fcn.10001069
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x1000640b
push 0xb88
push 0x4242654
push 4
call fcn.1010142e
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10006428
push 0xb88
push 0x4242654
push 1
call fcn.1010142e
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x2c], ebx
push dword [ebp - 0x2c]
push 4
mov eax, 2
call fcn.10102320
add esp, 8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
mov ebx, dword [ebx]
mov dword [ebp - 0x34], ebx
call fcn.10001069
mov dword [ebp - 0x38], ecx
mov edi, dword [ebp - 0x34]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x10006479
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x38]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0x34]
call fcn.10101434
add esp, 8
mov ebx, dword [ebp - 0x2c]
mov dword [ebx], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x38]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x30]
mov dword [edi], eax
add dword [ebp - 0x1c], 0xf
pop eax
pop ebx
pop ecx
jmp 0x10006254
add esp, 0xc
jmp 0x10006607
mov ebx, dword [0x102bd7d7]
call fcn.10001069
push ebx
push ecx
mov eax, dword [ebp - 0x18]
dec eax
jns 0x100064e4
push 0xcb1
push 0x4242654
push 4
call fcn.1010142e
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10006501
push 0xcb1
push 0x4242654
push 1
call fcn.1010142e
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x2c], ebx
push dword [ebp - 0x2c]
call fcn.100020ba
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push eax
lea eax, [ebp - 0x20]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x10006604
mov ebx, dword [0x102bd7d3]
call fcn.10001069
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x1000655d
push 0xcfd
push 0x4242654
push 4
call fcn.1010142e
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000657a
push 0xcfd
push 0x4242654
push 1
call fcn.1010142e
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x2c], ebx
push dword [ebp - 0x2c]
push 4
mov eax, 2
call fcn.10102320
add esp, 8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
mov ebx, dword [ebx]
mov dword [ebp - 0x34], ebx
call fcn.10001069
mov dword [ebp - 0x38], ecx
mov edi, dword [ebp - 0x34]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x100065cb
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x38]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0x34]
call fcn.10101434
add esp, 8
mov ebx, dword [ebp - 0x2c]
mov dword [ebx], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x38]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x30]
mov dword [edi], eax
add dword [ebp - 0x1c], 0xf
pop eax
pop ebx
pop ecx
jmp 0x10006525
add esp, 0xc
mov ebx, dword [0x102bd7d3]
call fcn.10001069
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x10006631
push 0xd81
push 0x4242654
push 4
call fcn.1010142e
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000664e
push 0xd81
push 0x4242654
push 1
call fcn.1010142e
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0x2c], ebx
push dword [ebp - 0x2c]
push 4
mov eax, 2
call fcn.10102320
add esp, 8
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
mov ebx, dword [ebx]
mov dword [ebp - 0x34], ebx
call fcn.10001069
mov dword [ebp - 0x38], ecx
mov edi, dword [ebp - 0x34]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x1000669f
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x38]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0x34]
call fcn.10101434
add esp, 8
mov ebx, dword [ebp - 0x2c]
mov dword [ebx], eax
mov esi, eax
add esi, 8
mov ecx, dword [ebp - 0x38]
mov ebx, ecx
shl ebx, 2
add esi, ebx
sub esi, 4
mov edi, esi
add edi, 4
std
rep movsd dword es:[edi], dword [esi]
mov edi, esi
add edi, 4
cld
mov eax, dword [ebp - 0x30]
mov dword [edi], eax
mov ebx, dword [0x102bd7d7]
call fcn.10001069
push ebx
push ecx
mov eax, dword [ebp - 0x18]
dec eax
jns 0x10006709
push 0xdbb
push 0x4242654
push 4
call fcn.1010142e
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10006726
push 0xdbb
push 0x4242654
push 1
call fcn.1010142e
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], esp
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x1000675f
push 0xdbb
push 0x4242654
push 6
call fcn.1010142e
add esp, 0xc
mov ebx, dword [0x102bd7d3]
call fcn.10001069
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x10006789
push 0xe22
push 0x4242654
push 4
call fcn.1010142e
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x100067a6
push 0xe22
push 0x4242654
push 1
call fcn.1010142e
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
mov ebx, dword [ebx]
call fcn.10001089
mov dword [ebp - 0x20], eax
push dword [0x102bd7cf]
call fcn.10002410
cmp dword [ebp - 0x20], 0
mov eax, 0
setg al
jmp 0x100067dc
mov esp, ebp
pop ebp
ret 0x10