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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x45a7c0]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x98], eax
xor edx, edx
mov ecx, 0x65
mov eax, edi
div ecx
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ebx, dword [esp + 0xa8]
movzx ebp, ax
mov eax, dword [ebx + 4]
sub ebp, 4
cmp eax, 4
jb 0x41ea36
mov ecx, dword [ebx + 0xc]
cmp dword [ecx], 0x7c7d7e7f
jne 0x41ea36
cmp eax, 8
jb 0x41ea36
mov ecx, dword [ecx + 4]
cmp ecx, esi
mov dword [esp + 0x54], ecx
mov dword [ebx], 8
mov dword [esp + 0x38], esi
jbe 0x41e9ce
lea eax, [esp + 0x3c]
push eax
push ebx
call fcn.0040f860
add esp, 8
cmp eax, 0xffffffff
je 0x41ec13
mov eax, dword [esp + 0x3c]
cmp eax, 3
jne 0x41e92d
cmp dword [esp + 0x48], 1
jne 0x41e9b9
mov ecx, dword [esp + 0x44]
cmp byte [ecx], 0x91
jne 0x41e9b9
mov eax, dword [esp + 0x40]
mov edx, eax
sar eax, 0x10
and edx, 0xffff
push edx
and eax, 0xffff
push eax
lea eax, [esp + 0x80]
push str._d._d
push eax
call fcn.00422d02
lea ecx, [esp + 0x88]
add esp, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ecx
jmp 0x41e9b9
cmp eax, 2
jne 0x41e9b9
mov eax, dword [esp + 0x48]
cmp eax, 1
jne 0x41e989
mov edx, dword [esp + 0x44]
mov al, byte [edx]
mov ecx, dword [esp + 0x40]
cmp al, 1
mov eax, dword [esp + 0x4c]
jne 0x41e959
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ecx
cmp byte [edx], 0xb
jne 0x41e966
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], ecx
mov dl, byte [edx]
cmp dl, 0x85
jne 0x41e975
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
cmp dl, 0x91
jne 0x41e982
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ecx
cmp dl, 0x93
jne 0x41e9b9
jmp 0x41e9b1
cmp eax, 0xc
jne 0x41e9b9
mov esi, dword [esp + 0x44]
mov ecx, 3
mov edi, str.auxportslist
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
mov edi, dword [esp + 0xa0]
jne 0x41e9b9
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x54]
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
jb 0x41e8b6
push 0x45a4c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x50]
mov esi, dword [eax*4 + 0x45a4fc]
xor ebx, ebx
cmp esi, ebx
je 0x41ea08
lea ebx, [ebx]
cmp dword [esi + 0x1c], edi
jne 0x41ea01
movzx ecx, word [esi + 0x20]
cmp ecx, ebp
je 0x41eae8
mov esi, dword [esi + 0x18]
cmp esi, ebx
jne 0x41e9f0
cmp dword [0x466450], ebx
je 0x41ec08
push ebp
lea edx, [esp + 0x5c]
push edi
push edx
call fcn.0041fa90
add esp, 8
push eax
push str.received_a_name:desc_reply_from_unknown_server__s:_d_n
call fcn.0040ce60
add esp, 0xc
jmp 0x41ec08
lea edx, [esp + 0x30]
push edx
push ebx
call fcn.0040f750
add esp, 8
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x41ea8d
cmp dword [0x466450], esi
je 0x41ec13
push ebp
lea eax, [esp + 0x5c]
push edi
push eax
call fcn.0041fa90
add esp, 8
push eax
push str.received_a_bad_name:desc_reply_from_server__s:_d___bad_name__n
call fcn.0040ce60
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
call fcn.004233fe
add esp, 0x8c
ret
lea ecx, [esp + 0x34]
push ecx
push ebx
call fcn.0040f750
add esp, 8
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x41e9ce
cmp dword [0x466450], esi
je 0x41ec13
push ebp
lea edx, [esp + 0x5c]
push edi
push edx
call fcn.0041fa90
add esp, 8
push eax
push str.received_a_bad_name:desc_reply_from_server__s:_d___bad_desc__n
call fcn.0040ce60
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
call fcn.004233fe
add esp, 0x8c
ret
push ebx
call fcn.00422e61
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x74]
add esp, 4
cmp eax, ebx
je 0x41eb04
push eax
call fcn.00418290
add esp, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.00402830
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x70]
add esp, 8
cmp eax, ebx
je 0x41eb29
push eax
call fcn.00418290
add esp, 4
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
push edx
push eax
call fcn.00402830
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x78]
add esp, 8
cmp eax, ebx
je 0x41eb4e
push eax
call fcn.00418290
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x41eb66
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00402830
add esp, 8
jmp 0x41eb68
xor eax, eax
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x7c]
cmp eax, ebx
je 0x41eb7b
push eax
call fcn.00418290
add esp, 4
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x41eb93
mov edx, dword [esp + 0x18]
push eax
push edx
call fcn.00402830
add esp, 8
jmp 0x41eb95
xor eax, eax
cmp eax, ebx
mov dword [esi + 0x7c], eax
je 0x41ebd5
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push str._d._d
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call fcn.00422fc4
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp eax, 0x11
jg 0x41ebce
jne 0x41ebd5
cmp dword [esp + 0x10], 3
jl 0x41ebd5
mov dword [esi + 0x10], 1
mov eax, dword [esi + 0x80]
cmp eax, ebx
je 0x41ebe8
push eax
call fcn.00418290
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x41ec00
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.00402830
add esp, 8
jmp 0x41ec02
xor eax, eax
mov dword [esi + 0x80], eax
push 0x45a4c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
call fcn.004233fe
add esp, 0x8c
ret