Function at 0x476828
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
jmp 0x476841
push htons
push 0
push 0x46af6b
push 1
mov ebx, 0x9dc
call fcn.0055f060
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp - 8]
push 0
push 0
push 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4768a1
push 6
call fcn.0055dd91
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4768c6
push 6
call fcn.0055dd91
add esp, 4
cmp dword [ebp - 4], 0
mov eax, 0
sete al
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push eax
push 1
mov ebx, 0x9dc
call fcn.0055f060
add esp, 0x10
xor ecx, ecx
inc ecx
push ecx
push eax
cmp ecx, eax
jg 0x476900
xor esp, esp
ret
add esp, 8
push 0
mov ebx, 0x210
call fcn.00560430
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
push 0x80000301
push 0
push 7
push 0x80000003
push dword [0x6148a8]
push dword [0x6148a4]
push 0x80000003
push dword [ebp - 8]
push dword [ebp - 0xc]
push 3
mov ebx, 0x1e0
call fcn.00560570
add esp, 0x28
push 0x80000601
push edx
push eax
push 1
mov ebx, 0x9dc
call fcn.0055f060
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 5
mov eax, 0
setg al
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push eax
push 1
mov ebx, 0x9dc
call fcn.0055f060
add esp, 0x10
xor ecx, ecx
inc ecx
push ecx
push eax
cmp ecx, eax
jg 0x4769ab
xor esp, esp
ret
add esp, 8
push 0
mov ebx, 0x210
call fcn.00560430
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
push 0x80000301
push 0
push 7
push 0x80000003
push dword [0x614340]
push dword [0x61433c]
push 0x80000003
push dword [ebp - 8]
push dword [ebp - 0xc]
push 3
mov ebx, 0x1e0
call fcn.00560570
add esp, 0x28
push 0x80000601
push edx
push eax
push 1
mov ebx, 0x9dc
call fcn.0055f060
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 5
mov eax, 0
setg al
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push eax
push 1
mov ebx, 0x9dc
call fcn.0055f060
add esp, 0x10
xor ecx, ecx
inc ecx
push ecx
push eax
cmp ecx, eax
jg 0x476a56
xor esp, esp
ret
add esp, 8
jmp 0x476a62
mov ebx, dword [0x6148dc]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
push 0x614484
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x100]
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push eax
push 1
mov ebx, 0x9dc
call fcn.0055f060
add esp, 0x10
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [0x6148dc]
add ebx, 4
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
push 0x614650
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xb8]
push eax
push 0x614650
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc0]
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [0x6148dc]
add ebx, 8
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov dword [ebx], 0
mov ebx, dword [0x6148dc]
add ebx, 0xc
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov dword [ebx], 0x2bc
mov ebx, dword [0x6148dc]
add ebx, 0x10
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov dword [ebx], 0xff
mov ebx, dword [0x6148dc]
add ebx, 0x14
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov dword [ebx], 0
push 0x6148dc
push 4
push 0x6148d8
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
mov esp, ebp
pop ebp
ret