Function at 0x1000d920
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042027
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10059084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x18
mov dword [edi], vtable.WebServerBase.0
mov dword [edi + 0x610], 0
mov dword [edi + 0x614], 0
mov dword [edi + 0x618], 0
mov dword [edi + 0x620], 0
mov dword [edi + 0x62c], 0
mov dword [edi + 0x628], 0
mov dword [edi + 0x624], 0
mov dword [edi + 0x61c], 0x100526e0
mov dword [edi + 0x630], 0x10052724
call fcn.1002c463
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 4
mov dword [edi + 0x634], eax
push eax
call ebx
lea eax, [edi + 0x5f8]
mov dword [edi + 0x638], 0
push eax
mov dword [edi + 0x63c], 0
call ebx
mov esi, dword [edi + 0x63c]
or ebx, 0xffffffff
mov dword [edi + 0x638], 0
mov dword [edi + 0x63c], 0
test esi, esi
je 0x1000da23
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1000da23
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1000da23
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [edi + 0x640], 0
mov dword [edi + 0x658], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x10], 0
mov dword [edi], vtable.WebServerHTTP.0
mov dword [edi + 0x650], 0
mov dword [edi + 0x654], 0xf
mov byte [edi + 0x640], 0
mov dword [edi + 0x668], 0
mov dword [edi + 0x66c], 0xf
mov byte [edi + 0x658], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x670], 0
mov dword [edi + 0x678], 0
mov dword [edi + 0x67c], 0
push 0x18
mov dword [edi + 0x690], 0x10052724
call fcn.1002c463
add esp, 4
mov dword [edi + 0x694], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
mov dword [edi + 0x674], 0x1811
call fcn.1000a040
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov esi, dword [edi + 0x67c]
mov dword [edi + 0x678], ecx
mov dword [edi + 0x67c], edx
test esi, esi
je 0x1000db32
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1000db32
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1000db32
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1000db58
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1000db58
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1000db58
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [edi + 0x67c]
test esi, esi
je 0x1000db6c
lock inc dword [esi + 4]
mov esi, dword [edi + 0x67c]
mov eax, dword [edi + 0x678]
test esi, esi
je 0x1000db7a
lock inc dword [esi + 4]
mov ecx, dword [edi + 0x63c]
mov dword [edi + 0x638], eax
mov dword [ebp - 0x10], ecx
mov dword [edi + 0x63c], esi
test ecx, ecx
je 0x1000dbb1
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x1000dbb1
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x10]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x1000dbb1
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1000dbd3
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1000dbd3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1000dbd3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0x680], eax
call esi
mov dword [edi + 0x684], eax
lea eax, [edi + 0x68c]
push eax
push 0
push edi
push 0x1000e440
push 0
push 0
call fcn.1002ccd7
mov dword [edi + 0x688], eax
add esp, 0x18
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret