Function at 0x10018000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1017e44b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101cd7b4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x40]
mov dword [esi], eax
push edx
lea eax, [esp + 0x48]
mov dword [esi + 4], ecx
xor ebx, ebx
push eax
lea ecx, [esi + 0xc]
mov dword [esp + 0x48], 3
mov dword [esp + 0x4c], ebx
call fcn.1004ce80
mov dword [esp + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
lea edi, [esi + 0x4c]
mov ecx, edi
mov byte [esp + 0x38], 1
call fcn.10004450
mov dword [edi + 4], eax
mov byte [eax + 0x29], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x68]
mov word [esi + 0x58], bx
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], edx
mov edi, 0x10199604
push eax
mov dword [esi + 0x64], edi
call ebp
lea ecx, [esi + 0x80]
mov byte [esp + 0x38], 3
call fcn.1000ecb0
lea ecx, [esi + 0xb8]
push ecx
mov dword [esi + 0xb4], edi
call ebp
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xdc], ebx
mov dl, byte [esp + 0x50]
lea eax, [esi + 0xf4]
mov word [esi + 0xe0], bx
mov byte [esi + 0xe2], dl
mov dword [esi + 0xe8], 0x400
mov dword [esi + 0xec], ebx
push eax
mov dword [esi + 0xf0], edi
call ebp
mov dword [esi + 0x110], ebx
mov dword [esi + 0x114], ebx
mov dword [esi + 0x118], ebx
lea ecx, [esi + 0x120]
push ecx
mov dword [esi + 0x11c], edi
call ebp
movzx edx, byte [esi + 0x13c]
mov dword [esi + 0x138], ebx
and dl, 0xf1
or dl, 0x11
lea eax, [esi + 0x154]
mov byte [esi + 0x13c], dl
mov byte [esi + 0x13d], bl
mov dword [esi + 0x13e], ebx
mov word [esi + 0x142], bx
mov dword [esi + 0x144], ebx
mov word [esi + 0x148], bx
mov dword [esi + 0x14a], ebx
mov word [esi + 0x14e], bx
push eax
mov dword [esi + 0x150], edi
call ebp
mov dword [esi + 0x16c], ebx
lea edi, [esi + 0x178]
mov dword [esi + 0x170], ebx
mov ecx, edi
mov byte [esp + 0x38], 0xa
mov dword [esi + 0x174], ebx
call fcn.10018cd0
mov dword [edi + 4], eax
mov byte [eax + 0x31], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x188], ebx
mov dword [esi + 0x18c], ebx
mov dword [esi + 0x190], ebx
lea ecx, [esi + 0x19c]
mov byte [esi + 0x194], bl
push ecx
mov dword [esi + 0x198], 0x10199604
call ebp
lea edi, [esi + 0x1b4]
mov ecx, edi
mov byte [esp + 0x38], 0xd
call fcn.10004450
mov dword [edi + 4], eax
mov byte [eax + 0x29], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x1c4], ebx
mov dword [esi + 0x1c8], ebx
mov dword [esi + 0x1cc], ebx
mov dword [esi + 0x1d4], ebx
mov dword [esi + 0x1d8], ebx
mov dword [esi + 0x1dc], ebx
push 0x38
mov byte [esp + 0x3c], 0x10
call fcn.1015989d
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, ebx
mov byte [esp + 0x38], 0x11
je 0x10018271
mov ecx, eax
call fcn.10079dc0
jmp 0x10018273
xor eax, eax
push ebx
mov edi, 0x1019a348
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 0x10
mov dword [esp + 0x28], edi
call fcn.10035880
mov dword [esp + 0x20], 0x1019a348
mov edx, dword [esi + 0x60]
push edx
lea eax, [esp + 0x24]
push eax
push 0x12
lea ecx, [esi + 0x1e0]
mov byte [esp + 0x44], 0x12
call fcn.100d4030
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 0x14
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x101996a4
call fcn.100a8e90
movzx ecx, byte [esp + 0x50]
mov dword [esi + 0x1f8], 0x3e8
mov word [esi + 0x1fc], bx
mov dword [esi + 0x200], ebx
mov word [esi + 0x204], bx
mov dword [esi + 0x208], ecx
mov dword [esi + 0x210], ebx
mov dword [esi + 0x214], ebx
mov dword [esi + 0x218], ebx
lea edi, [esi + 0x22c]
mov ecx, edi
mov byte [esp + 0x38], 0x15
mov byte [esi + 0x21c], bl
mov byte [esi + 0x228], bl
call fcn.10004450
mov dword [edi + 4], eax
mov byte [eax + 0x29], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov edx, dword [esp + 0x54]
mov dword [esi + 0x238], ebx
mov dword [esi + 0x23c], ebx
mov dword [esi + 0x240], ebx
mov dword [esi + 0x244], ebx
mov dword [esi + 0x248], ebx
mov dword [esi + 0x24c], 0xa
mov dword [esi + 0x250], edx
mov dword [esi + 0x258], ebx
mov dword [esi + 0x25c], ebx
mov dword [esi + 0x260], ebx
mov dword [esi + 0x268], ebx
mov dword [esi + 0x26c], ebx
mov dword [esi + 0x270], ebx
mov dword [esi + 0x278], ebx
mov dword [esi + 0x27c], ebx
mov dword [esi + 0x280], ebx
lea edi, [esi + 0x284]
mov ecx, edi
mov byte [esp + 0x38], 0x19
call fcn.10004490
mov dword [edi + 4], eax
mov byte [eax + 0x22], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x2a4]
mov ecx, edi
mov byte [esp + 0x38], 0x1a
mov byte [esi + 0x2a0], bl
call fcn.100a74f0
mov dword [edi + 4], eax
mov byte [eax + 0x19], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea ecx, [esi + 0x2b4]
mov byte [esp + 0x38], 0x1b
mov byte [esi + 0x2b0], bl
call fcn.1000d170
mov byte [esp + 0x38], 0x1c
mov word [esi + 0x30c], bx
call fcn.10002330
mov ecx, dword [eax]
mov edi, dword [sym.imp.WS2_32.dll_htons]
mov dword [esi + 0x290], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x294], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x298], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x58]
push 0x1f90
mov dword [esi + 0x29c], edx
mov dword [esi + 0x2dc], eax
call edi
push 0x1f9a
mov word [esi + 0x2e0], ax
call edi
mov ecx, dword [esp + 0x50]
push ecx
lea edx, [esp + 0x23]
mov word [esi + 0x2e0], ax
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebx
mov word [esp + 0x28], bx
mov byte [esp + 0x2a], bl
call fcn.1000abd0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 0x10c]
mov byte [esp + 0x3c], 0x1d
call fcn.1000af80
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov byte [esp + 0x38], 0x1c
je 0x100184cb
push eax
call fcn.10159534
add esp, 4
call fcn.100f02ac
mov ecx, eax
call fcn.100f0039
push ebx
mov dword [esi + 8], eax
call fcn.1015972a
push eax
call fcn.1015a060
add esp, 8
call fcn.1015a06d
cdq
mov ecx, 0xffff
idiv ecx
mov ecx, esi
mov word [esi + 0x1fe], dx
mov edx, dword [0x101cc018]
mov dword [esi + 0x220], edx
mov eax, dword [0x101cc01c]
mov dword [esi + 0x224], eax
call fcn.10017a40
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x1c