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

Disassembly:
push 0xffffffffffffffff
push 0x440020
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x454654]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, dword [esp + 0x70]
xor ebx, ebx
cmp esi, ebx
je 0x4150ed
mov ebp, dword [esp + 0x74]
cmp ebp, ebx
je 0x4150ed
cmp dword [esi + 0x1c], ebx
je 0x4150ed
cmp dword [esi + 0x20], ebx
je 0x4150ed
cmp dword [esi + 0x24], ebx
je 0x4150ed
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esi + 0x24]
push eax
push ebp
mov dword [esp + 0x24], eax
call fcn.00412e20
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0x78]
mov ecx, dword [esi + 0x20]
push ebp
call fcn.004124e0
mov eax, dword [esp + 0x1c]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x44]
push ecx
call fcn.004132e0
lea edx, [esp + 0x44]
xor edi, edi
push edx
mov dword [esp + 0x6c], edi
mov eax, dword [esi + 0x24]
push ebp
call fcn.00412ce0
cmp dword [esp + 0x5c], edi
jbe 0x415049
mov eax, dword [esp + 0x58]
mov ebp, dword [eax]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], edi
mov esi, dword [esp + 0x58]
test edi, edi
je 0x414f31
cmp edi, dword [esp + 0x44]
je 0x414f36
call fcn.00428397
cmp ebp, esi
je 0x415049
cmp dword [esp + 0x14], 3
jge 0x415049
lea esi, [esp + 0x30]
call fcn.00418220
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x68], 1
cmp edi, ebx
jne 0x41503b
call fcn.00428397
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x414f86
call fcn.00428397
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov esi, eax
cmp edi, ebx
jne 0x415042
call fcn.00428397
xor edi, edi
cmp ebp, dword [edi + 0x14]
jne 0x414fab
call fcn.00428397
mov edx, dword [esp + 0x7c]
movzx eax, word [ebp + 0xc]
mov edi, dword [esp + 0x74]
push edx
push edi
push eax
push esi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, dword [esp + 0x84]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
call fcn.004183f0
mov ebx, eax
test ebx, ebx
jne 0x415082
lea esi, [esp + 0x20]
call fcn.00413850
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [edx + 0x24]
push edi
call fcn.00412b60
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x41500c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x41501d
push eax
call fcn.00427613
add esp, 4
lea edi, [esp + 0x28]
lea esi, [esp + 0x20]
call fcn.00413880
inc dword [esp + 0x14]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
jmp 0x414f23
mov eax, dword [edi]
jmp 0x414f7c
mov edi, dword [edi]
jmp 0x414fa1
lea esi, [esp + 0x44]
mov dword [esp + 0x68], 0xffffffff
call fcn.00413bc0
mov eax, dword [esp + 0x44]
push eax
call fcn.00427613
mov eax, dword [esp + 0x1c]
inc eax
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, 2
jae 0x4150ba
mov esi, dword [esp + 0x70]
mov ebp, dword [esp + 0x74]
jmp 0x414ec8
mov eax, dword [esp + 0x30]
test eax, eax
je 0x415091
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4150a2
push eax
call fcn.00427613
add esp, 4
lea esi, [esp + 0x44]
call fcn.00413bc0
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00427613
add esp, 4
jmp 0x4150be
mov edi, dword [esp + 0x74]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x70]
mov eax, dword [edx + 0x24]
push esi
push edi
call fcn.004130c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret