Function at 0x418b60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
neg eax
push esi
sbb eax, eax
test eax, eax
push edi
mov edi, ecx
jne 0x418b8a
push 0x57
call sub.storm.dll_Ordinal_465
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
test eax, eax
jne 0x418ba7
push 0x57
call sub.storm.dll_Ordinal_465
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0xee2
push str.E:Drive1_temp_buildwar3xengineSourceOsW32OsTcp.cpp
push 0x48
call sub.storm.dll_Ordinal_401
mov esi, eax
test esi, esi
je 0x418bdf
lea ecx, [esi + 0x28]
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0041c460
lea ecx, [esi + 0x38]
call fcn.0041c490
jmp 0x418be1
xor esi, esi
push 0
push 0xee3
push str.E:Drive1_temp_buildwar3xengineSourceOsW32OsTcp.cpp
push ebx
call sub.storm.dll_Ordinal_506
inc eax
push eax
call sub.storm.dll_Ordinal_401
push accept
push ebx
push eax
mov dword [esi + 8], eax
call sub.storm.dll_Ordinal_501
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
call dword [sym.imp.kernel32.dll_CreateEventA]
mov ecx, dword [edi + 0x620]
mov dword [ebp - 8], eax
mov ax, word [ebp + 0xc]
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x10], edi
mov word [ebp - 4], ax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea ebx, [ebx]
mov eax, dword [edi + 0x624]
inc eax
mov dword [edi + 0x624], eax
mov ecx, eax
mov eax, dword [edi + 0x630]
cmp eax, ebx
jle 0x418c7c
lea esp, [esp]
cmp dword [eax + 0x10], ecx
je 0x418c50
mov eax, dword [eax + 4]
cmp eax, ebx
jg 0x418c70
cmp ecx, ebx
je 0x418c50
mov dword [esi + 0x10], ecx
mov dword [ebp - 0xc], ecx
mov ecx, edi
call fcn.00416410
lea edx, [ebp + 0xc]
push edx
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x418080
push ebx
push ebx
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
jne 0x418cec
mov ecx, edi
call fcn.00416420
mov ecx, esi
call fcn.00417bd0
push ebx
push 0xffffffffffffffff
push 0x452480
push esi
call sub.storm.dll_Ordinal_403
mov ecx, dword [edi + 0x620]
push ecx
call dword [sym.imp.kernel32.dll_SetEvent]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x418ce1
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [esi + 0x14], eax
cmp dword [esi], ebx
je 0x418d0d
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041d490
mov edx, dword [esi]
mov dword [eax], edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov dword [esi], ebx
mov dword [esi + 4], ebx
lea ebx, [edi + 0x62c]
mov dword [esi], ebx
mov edx, dword [ebx + 4]
mov dword [esi + 4], edx
mov eax, dword [edi + 0x628]
push eax
mov ecx, ebx
call fcn.0041d490
mov dword [eax], esi
mov dword [ebx + 4], esi
mov ecx, dword [edi + 0x620]
push ecx
call dword [sym.imp.kernel32.dll_SetEvent]
add edi, 0x61c
push edi
call dword [sym.imp.kernel32.dll_InterlockedIncrement]
mov edx, dword [ebp - 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
test eax, eax
je 0x418d62
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10