Function at 0x100403a0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1e0
mov edi, dword [ebp + 8]
mov eax, dword [0x1017e7a8]
mov eax, dword [eax]
cmp eax, 3
jbe 0x10040405
lea ecx, [esp + 0xa0]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], fcn.100ae25b
lea eax, [esp + 0x38]
mov dword [eax], str.starting_new_connection:
xor edx, edx
inc edx
mov dword [eax + 4], edx
xor esi, esi
mov dword [eax + 0x10], esi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
sub esp, 4
push esi
push 0x1c1
push 0x10108f38
push 4
push eax
call fcn.1009b34c
add esp, 0x18
mov eax, dword [edi + 0x20]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x30], eax
mov ecx, dword [edi + 0x44]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x1004044f
mov ebx, dword [ecx + 0xc]
mov ecx, eax
shl ecx, 6
lea esi, [ecx + eax*4]
lea edi, [esp + 0x78]
push dword [ebp + 0xc]
push ebx
push edi
call fcn.10056e58
add esp, 0xc
cmp dword [esp + 0x78], 2
jne 0x10040497
add ebx, 0x44
add esi, 0xffffffbc
jne 0x10040433
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x14]
lock inc dword [ecx]
jle 0x10040897
mov eax, dword [esi + 0x18]
lock inc dword [eax]
jle 0x10040897
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], eax
cmp dword [esi], 0
mov dword [esp + 0x20], ecx
je 0x100404e6
lea eax, [esi + 4]
xor ecx, ecx
inc ecx
mov dword [esp + 8], ecx
push eax
call fcn.1005a9d1
add esp, 4
mov dword [esp + 0xc], eax
jmp 0x100404ee
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x14]
lock inc dword [ecx]
jle 0x10040897
mov eax, dword [esi + 0x18]
lock inc dword [eax]
jle 0x10040897
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], eax
cmp dword [esi], 0
je 0x100406aa
lea eax, [esi + 4]
xor ecx, ecx
inc ecx
mov dword [esp + 8], ecx
push eax
call fcn.1005a9d1
add esp, 4
mov dword [esp + 0xc], eax
jmp 0x100406b2
mov dword [esp + 8], 0
lea eax, [esi + 8]
push eax
call fcn.1005aa48
add esp, 4
mov bh, byte [esi + 0x10]
mov cl, byte [esi + 0x11]
mov ch, byte [esi + 0xc]
mov dl, byte [esi + 0xd]
mov byte [esp + 7], dl
mov dl, byte [esi + 0xe]
mov byte [esp + 6], dl
mov dl, byte [esi + 0xf]
mov byte [esp + 5], dl
mov edx, dword [esi + 0x44]
lock inc dword [edx]
jle 0x10040897
mov byte [esp], ch
mov edi, eax
mov byte [esp + 1], cl
mov dword [esp + 0x1c], edx
mov al, byte [esi + 0x48]
mov byte [esp + 2], al
mov eax, dword [esi + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x10], eax
mov al, byte [esi + 0x49]
mov byte [esp + 4], al
mov al, byte [esi + 0x4a]
mov byte [esp + 3], al
mov bl, 2
cmp byte [esi + 0x40], 2
je 0x1004057d
lea eax, [esi + 0x3c]
mov ecx, dword [esi + 0x30]
lea edx, [esp + 0x38]
push dword [esi + 0x38]
push dword [esi + 0x34]
push eax
push edx
call dword [ecx]
add esp, 0x10
mov bl, byte [esi + 0x40]
movups xmm0, xmmword [esp + 0x38]
movups xmmword [esp + 0x68], xmm0
mov eax, dword [ebp + 0xc]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmmword [esp + 0x100], xmm0
movups xmmword [esp + 0x110], xmm1
movups xmm0, xmmword [eax + 0x1c]
movups xmmword [esp + 0x11c], xmm0
mov al, byte [0x1017f1d9]
push 8
push 0x310
call fcn.10007540
add esp, 8
test eax, eax
je 0x10040899
mov esi, eax
mov eax, dword [esp + 8]
mov dword [esi], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov al, byte [esp]
mov byte [esi + 0xc], al
mov al, byte [esp + 7]
mov byte [esi + 0xd], al
mov al, byte [esp + 6]
mov byte [esi + 0xe], al
mov al, byte [esp + 5]
mov byte [esi + 0xf], al
mov byte [esi + 0x10], bh
mov al, byte [esp + 1]
mov byte [esi + 0x11], al
mov eax, dword [esp + 0x20]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x74]
mov dword [esi + 0x3c], eax
movups xmm0, xmmword [esp + 0x64]
movups xmmword [esi + 0x2c], xmm0
mov byte [esi + 0x40], bl
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x44], eax
mov al, byte [esp + 2]
mov byte [esi + 0x48], al
mov al, byte [esp + 4]
mov byte [esi + 0x49], al
mov al, byte [esp + 3]
mov byte [esi + 0x4a], al
lea eax, [esi + 0x50]
lea ecx, [esp + 0xa8]
push 0x84
push ecx
push eax
call fcn.100e9d70
add esp, 0xc
mov word [esi + 0x150], 0
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x15c], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x158], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x160], eax
mov eax, esi
add eax, 0x168
mov edx, 0x10109038
jmp 0x1004088a
mov dword [esp + 8], 0
lea eax, [esi + 8]
push eax
call fcn.1005aa48
add esp, 4
mov bh, byte [esi + 0x10]
mov cl, byte [esi + 0x11]
mov ch, byte [esi + 0xc]
mov dl, byte [esi + 0xd]
mov byte [esp + 7], dl
mov dl, byte [esi + 0xe]
mov byte [esp + 6], dl
mov dl, byte [esi + 0xf]
mov byte [esp + 5], dl
mov edx, dword [esi + 0x44]
lock inc dword [edx]
jle 0x10040897
mov byte [esp], ch
mov edi, eax
mov byte [esp + 1], cl
mov dword [esp + 0x1c], edx
mov al, byte [esi + 0x48]
mov byte [esp + 2], al
mov eax, dword [esi + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x10], eax
mov al, byte [esi + 0x49]
mov byte [esp + 4], al
mov al, byte [esi + 0x4a]
mov byte [esp + 3], al
mov bl, 2
cmp byte [esi + 0x40], 2
je 0x10040741
lea eax, [esi + 0x3c]
mov ecx, dword [esi + 0x30]
lea edx, [esp + 0x38]
push dword [esi + 0x38]
push dword [esi + 0x34]
push eax
push edx
call dword [ecx]
add esp, 0x10
mov bl, byte [esi + 0x40]
movups xmm0, xmmword [esp + 0x38]
movups xmmword [esp + 0x54], xmm0
mov eax, dword [ebp + 0xc]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmmword [esp + 0x1b0], xmm0
movups xmmword [esp + 0x1c0], xmm1
movups xmm0, xmmword [eax + 0x1c]
movups xmmword [esp + 0x1cc], xmm0
mov al, byte [0x1017f1d9]
push 8
push 0x4790
call fcn.10007540
add esp, 8
test eax, eax
je 0x100408a0
mov esi, eax
mov eax, dword [esp + 8]
mov dword [esi], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov al, byte [esp]
mov byte [esi + 0xc], al
mov al, byte [esp + 7]
mov byte [esi + 0xd], al
mov al, byte [esp + 6]
mov byte [esi + 0xe], al
mov al, byte [esp + 5]
mov byte [esi + 0xf], al
mov byte [esi + 0x10], bh
mov al, byte [esp + 1]
mov byte [esi + 0x11], al
mov eax, dword [esp + 0x20]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x60]
mov dword [esi + 0x3c], eax
movups xmm0, xmmword [esp + 0x50]
movups xmmword [esi + 0x2c], xmm0
mov byte [esi + 0x40], bl
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x44], eax
mov al, byte [esp + 2]
mov byte [esi + 0x48], al
mov al, byte [esp + 4]
mov byte [esi + 0x49], al
mov al, byte [esp + 3]
mov byte [esi + 0x4a], al
movsd xmm0, qword [esp + 0x98]
movsd qword [esi + 0x70], xmm0
movups xmm0, xmmword [esp + 0x78]
movups xmm1, xmmword [esp + 0x88]
movups xmmword [esi + 0x60], xmm1
movups xmmword [esi + 0x50], xmm0
lea eax, [esi + 0x78]
lea ecx, [esp + 0x130]
push 0xac
push ecx
push eax
call fcn.100e9d70
add esp, 0xc
mov byte [esi + 0x18e], 0
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x239c], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x2398], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x23a0], eax
mov eax, esi
add eax, 0x23a8
mov edx, 0x10109048
mov byte [eax], 0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
push 0x310
jmp 0x100408a5
push 0x4790
push 8
call fcn.10101000
push esi
mov esi, dword [esp + 8]
mov eax, dword [esp + 0xc]
cmp dword [eax], 2
jne 0x100408c2
mov dword [esi], 0x80000001
jmp 0x100408cc
push eax
push esi
call fcn.10040957
add esp, 8
mov eax, esi
pop esi
ret