Function at 0x100313d0
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10180529
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101cd7b4]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
call fcn.1002e5b0
mov eax, dword [ebp + 0x14]
mov esi, dword [eax]
lea edi, [ebp + 0x10]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
xor ebx, ebx
lea ebx, [ebx]
cmp edi, ebx
lea eax, [ebp + 0x10]
mov ebp, dword [eax + 4]
je 0x1003142e
cmp edi, eax
je 0x10031433
call fcn.1015988d
cmp esi, ebp
je 0x1003155f
cmp edi, ebx
jne 0x10031444
call fcn.1015988d
cmp esi, dword [edi + 4]
jne 0x1003144e
call fcn.1015988d
cmp dword [esi + 0x20], ebx
je 0x10031545
mov ebp, 0xf
push ebp
push str.255.255.255.255
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.10005610
cmp esi, dword [edi + 4]
mov dword [esp + 0xe8], ebx
jne 0x10031488
call fcn.1015988d
lea ecx, [esp + 0x20]
push ecx
lea eax, [esi + 0xc]
push eax
lea ecx, [esp + 0x98]
call fcn.10036340
mov ecx, dword [esp + 0x14]
push eax
lea edx, [esp + 0xd8]
push edx
add ecx, 4
mov byte [esp + 0xf0], 1
call fcn.1002bcd0
mov esi, 0x10
cmp dword [esp + 0xc4], esi
jb 0x100314d8
mov eax, dword [esp + 0xb0]
push eax
call fcn.10159534
add esp, 4
cmp dword [esp + 0xa8], esi
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
jb 0x10031506
mov ecx, dword [esp + 0x94]
push ecx
call fcn.10159534
add esp, 4
cmp dword [esp + 0x38], esi
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
mov dword [esp + 0xe8], 0xffffffff
jb 0x10031539
mov edx, dword [esp + 0x24]
push edx
call fcn.10159534
add esp, 4
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x18]
call fcn.10029f90
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
jmp 0x10031420
mov ebp, dword [esp + 0xf0]
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 8]
jbe 0x10031573
call fcn.1015988d
mov edi, dword [ebp + 8]
cmp dword [ebp + 4], edi
jbe 0x10031580
call fcn.1015988d
cmp esi, edi
je 0x10031682
cmp esi, dword [ebp + 8]
jb 0x10031592
call fcn.1015988d
cmp dword [esi + 0x14], ebx
je 0x10031670
mov edi, 0xf
push edi
push str.255.255.255.255
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.10005610
cmp esi, dword [ebp + 8]
mov dword [esp + 0xe8], 2
jb 0x100315d0
call fcn.1015988d
lea eax, [esp + 0x3c]
push eax
push esi
lea ecx, [esp + 0x60]
call fcn.10036340
push eax
lea ecx, [esp + 0xcc]
push ecx
mov ecx, dword [esp + 0x1c]
add ecx, 4
mov byte [esp + 0xf0], 3
call fcn.1002bcd0
cmp dword [esp + 0x8c], 0x10
jb 0x10031613
mov edx, dword [esp + 0x78]
push edx
call fcn.10159534
add esp, 4
cmp dword [esp + 0x70], 0x10
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
jb 0x10031639
mov eax, dword [esp + 0x5c]
push eax
call fcn.10159534
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
mov dword [esp + 0xe8], 0xffffffff
jb 0x10031664
mov ecx, dword [esp + 0x40]
push ecx
call fcn.10159534
add esp, 4
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
cmp esi, dword [ebp + 8]
jb 0x1003167a
call fcn.1015988d
add esi, 0x1c
jmp 0x10031573
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x1c], ebx
jne 0x100316c8
lea esi, [edi + 0x30]
mov byte [edi + 0x24], 1
mov byte [edi + 0x25], bl
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi + 0x4c]
push edx
mov byte [edi + 0x28], bl
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [edi + 0x20]
push eax
push ebx
push edi
push 0x100308b0
push ebx
push ebx
call fcn.1015a189
add esp, 0x18
mov dword [edi + 0x1c], eax
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret 4