Function at 0x41b6a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x450090
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x41b9f2
mov edi, dword [ebp + 8]
test edi, edi
je 0x41b9f2
lea eax, [esi + 0x8c]
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
push 0
push 0
push 0
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
push ebx
lea ecx, [esi + 0x24]
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ecx
call fcn.004191f0
add esi, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], esi
jmp 0x41b730
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [esp + 0x28]
call fcn.004188d0
push 0x3e8
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x48]
push eax
call fcn.004140f0
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x48]
push ecx
xor edi, edi
push edx
mov dword [esp + 0x78], edi
call fcn.004190b0
cmp dword [esp + 0x60], edi
jbe 0x41b8d6
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x10], edi
mov edi, dword [eax]
mov dword [esp + 0x30], edi
mov esi, dword [esp + 0x5c]
test ebx, ebx
je 0x41b795
cmp ebx, dword [esp + 0x48]
je 0x41b79a
call fcn.00424b46
cmp edi, esi
je 0x41b8d0
cmp dword [esp + 0x10], 3
jge 0x41b8d0
lea esi, [esp + 0x34]
call fcn.0041bc60
xor esi, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov byte [esp + 0x70], 1
cmp ebx, esi
jne 0x41b8ba
call fcn.00424b46
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x41b7ea
call fcn.00424b46
mov ecx, dword [edi + 8]
lea esi, [edi + 8]
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov edi, eax
test ebx, ebx
jne 0x41b8c1
call fcn.00424b46
xor eax, eax
mov edx, dword [esp + 0x30]
cmp edx, dword [eax + 0x14]
jne 0x41b816
call fcn.00424b46
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
movzx eax, word [esi + 4]
push ecx
push edx
push eax
push edi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, eax
lea ecx, [esp + 0x44]
call fcn.0041c130
mov dword [esp + 0x20], eax
test eax, eax
jne 0x41b945
test ebx, ebx
jne 0x41b8c8
call fcn.00424b46
xor eax, eax
mov edi, dword [esp + 0x30]
cmp edi, dword [eax + 0x14]
jne 0x41b85e
call fcn.00424b46
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
push esi
push ecx
call fcn.00418f30
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x41b883
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x41b894
push eax
call fcn.00424042
add esp, 4
test ebx, ebx
jne 0x41b8cc
call fcn.00424b46
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x41b8a9
call fcn.00424b46
mov edx, dword [edi]
inc dword [esp + 0x10]
mov dword [esp + 0x30], edx
mov edi, edx
jmp 0x41b787
mov eax, dword [ebx]
jmp 0x41b7e0
mov eax, dword [ebx]
jmp 0x41b808
mov eax, dword [ebx]
jmp 0x41b850
mov eax, dword [ebx]
jmp 0x41b89f
mov ebx, dword [esp + 0x1c]
xor edi, edi
mov dword [esp + 0x70], 0xffffffff
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x5c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x60], edi
cmp eax, ecx
je 0x41b915
lea esp, [esp]
mov esi, dword [eax]
push eax
call fcn.00424042
mov ecx, dword [esp + 0x60]
add esp, 4
mov eax, esi
cmp esi, ecx
jne 0x41b900
push ecx
call fcn.00424042
mov eax, dword [esp + 0x4c]
add esp, 4
push eax
mov dword [esp + 0x60], edi
call fcn.00424042
mov eax, dword [esp + 0x1c]
inc eax
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, 2
jae 0x41b9bb
mov edi, dword [ebp + 8]
jmp 0x41b730
mov eax, dword [esp + 0x34]
test eax, eax
je 0x41b954
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x41b965
push eax
call fcn.00424042
add esp, 4
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x5c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x60], 0
cmp eax, ecx
je 0x41b999
mov esi, dword [eax]
push eax
call fcn.00424042
mov ecx, dword [esp + 0x60]
add esp, 4
mov eax, esi
cmp esi, ecx
jne 0x41b984
push ecx
call fcn.00424042
mov ecx, dword [esp + 0x4c]
add esp, 4
push ecx
mov dword [esp + 0x60], 0
call fcn.00424042
mov ebx, dword [esp + 0x20]
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
push ebx
push edx
call fcn.00419490
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret