Function at 0x10003c60
Capabilities:
Resolve function by parsing pe exports
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000d13b
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x10012020]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x10012020]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
push 0x2c
lea eax, [esp + 0x40]
mov edi, ecx
push 0
push eax
mov dword [esp + 0x24], edi
call fcn.10008d90
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x48]
mov dword [esp + 0x2c], ecx
mov eax, dword [edx]
add esp, 0xc
cmp dword [edi + 0x14], 0
mov dword [esp + 0x24], eax
jne 0x10003eba
or esi, 0xffffffff
push esi
push 0
lea ecx, [esp + 0x28]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x10003eba
cmp eax, 0x102
je 0x10003eb0
cmp eax, esi
jne 0x10003d70
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, word [edi + 0x40]
push eax
push edx
call fcn.10002720
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [edi + 0x48]
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x10003d2b
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 4], esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebx]
test eax, eax
je 0x10003d3e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
movzx eax, word [edi + 0x40]
mov esi, dword [edi + 0x48]
push eax
call fcn.10001250
mov ecx, dword [edi + 0x48]
neg eax
sbb eax, eax
inc eax
mov dword [edi + 0x4c], eax
mov edx, dword [ecx + 4]
push 5
push edx
call dword [sym.imp.WS2_32.dll_listen]
mov eax, dword [edi + 0x48]
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
jmp 0x10003eb0
cmp eax, 1
jne 0x10003eb0
push 0x2c
lea edx, [esp + 0x40]
push 0
push edx
call fcn.10008d90
mov eax, dword [edi + 0x48]
mov edx, dword [eax]
mov eax, dword [eax + 4]
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov al, byte [esp + 0x3c]
test al, 8
je 0x10003f41
cmp dword [esp + 0x4c], 0
jne 0x10003eb0
xor eax, eax
push eax
push eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x48]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
mov dword [esp + 0x28], 0x10
mov ecx, dword [eax + 4]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_WSAAccept]
mov ebx, eax
cmp ebx, esi
je 0x10003eb0
mov esi, edi
call fcn.10003fc0
mov dword [esp + 0x14], eax
test eax, eax
jns 0x10003e17
push 2
push ebx
call dword [sym.imp.WS2_32.dll_shutdown]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x10003eb0
push 0x18
call fcn.10004ab8
mov esi, eax
add esp, 4
test esi, esi
je 0x10003e02
xor eax, eax
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
lea edi, [esp + 0x2c]
mov dword [esi + 0x14], eax
call fcn.10001000
push 0x2b4
call fcn.10004ab8
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x78], 0
test eax, eax
je 0x10003e85
mov edx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x44]
push edx
mov edx, dword [esi + 0x2068]
push ecx
push edx
push eax
call fcn.10002730
jmp 0x10003e8b
mov esi, dword [esp + 0x18]
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x78], 0xffffffff
mov dword [esi + ecx*4 + 0x1050], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10003eac
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esp + 0x18]
cmp dword [edi + 0x14], 0
je 0x10003cc8
lea eax, [edi + 0x2050]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add edi, 0x1050
mov dword [esp + 0x14], 0x400
mov esi, dword [edi]
test esi, esi
je 0x10003f0d
cmp dword [edi - 0x1000], 1
lea ebx, [edi - 0x1000]
jne 0x10003f0d
mov eax, esi
call fcn.10002890
push esi
call fcn.100047e8
add esp, 4
push 0
push ebx
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
add edi, 4
dec dword [esp + 0x14]
jne 0x10003ed9
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.100047f3
mov esp, ebp
pop ebp
ret
test al, 0x20
je 0x10003eb0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [edi + 0x48]
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x10003f6e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 4], esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebx]
test eax, eax
je 0x10003f81
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
movzx edx, word [edi + 0x40]
mov esi, dword [edi + 0x48]
push edx
call fcn.10001250
neg eax
sbb eax, eax
inc eax
mov dword [edi + 0x4c], eax
mov eax, dword [edi + 0x48]
mov ecx, dword [eax + 4]
push 5
push ecx
call dword [sym.imp.WS2_32.dll_listen]
mov edx, dword [edi + 0x48]
mov eax, dword [edx]
mov dword [esp + 0x24], eax
jmp 0x10003eb0