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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5215fa
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
xor edi, edi
push ebx
lea esi, [esp + 0x30]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
call fcn.00439710
mov eax, dword [esp + 0x2c]
cmp eax, edi
jne 0x4a82d4
cmp eax, 1
jne 0x4a82c1
lea edi, [esp + 0x70]
lea ebx, [esp + 0x34]
call fcn.00439420
mov ebx, dword [ebp + 0xc]
jmp 0x4a82cc
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x30], eax
sete al
test al, al
jne 0x4a8548
movzx eax, word [ebx + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
test ax, ax
je 0x4a8548
push ebx
lea esi, [esp + 0x6c]
call fcn.00439710
cmp dword [esp + 0x68], 1
jne 0x4a8326
push ebx
lea esi, [esp + 0x6c]
call fcn.00439710
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.00438f60
cmp byte [eax], 0xfe
jne 0x4a8326
mov dl, byte [eax + 1]
and dl, 0xc0
cmp dl, 0x80
je 0x4a8548
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x14]
mov esi, dword [eax + 0x2e8]
cmp byte [esi + 0x1fa], 0
mov dword [esp + 0x14], esi
jne 0x4a83dc
mov eax, dword [eax + 0xa8]
test byte [eax + 0x158], 8
je 0x4a83dc
add esi, 0x380
mov dword [esp + 0x14], esi
call fcn.00470a50
test al, al
je 0x4a8548
mov ecx, dword [edi + 0x14]
lea eax, [esp + 0x18]
push eax
call fcn.004644a0
mov edi, eax
push ebx
lea esi, [esp + 0x6c]
mov dword [esp + 0x94], 0
call fcn.00439710
mov ecx, esi
mov edx, edi
lea eax, [esp + 0x2c]
call fcn.00451640
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x98], 1
call fcn.004cd100
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x94], 0
call fcn.0044e810
lea eax, [esp + 0x18]
mov dword [esp + 0x90], 0xffffffff
call fcn.00482950
jmp 0x4a8548
movzx eax, word [ebx + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
movzx eax, ax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
lea edx, [esi + 0xa08]
call fcn.004dabd0
test al, 1
je 0x4a8499
add esi, 0x380
mov dword [esp + 0x14], esi
call fcn.00470a50
test al, al
je 0x4a8489
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [edi + 0x14]
call fcn.004644a0
mov dword [esp + 0x18], eax
push ebx
lea esi, [esp + 0x6c]
mov dword [esp + 0x94], 2
call fcn.00439710
mov edx, dword [esp + 0x18]
mov ecx, esi
lea eax, [esp + 0x2c]
call fcn.00451640
mov edx, dword [esp + 0x14]
push eax
push edx
mov byte [esp + 0x98], 3
call fcn.004cd100
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x94], 2
call fcn.0044e810
lea eax, [esp + 0x20]
mov dword [esp + 0x90], 0xffffffff
call fcn.00482950
mov ecx, dword [ebp + 0x10]
mov edx, dword [edi + 0x14]
push 2
push ecx
push ebx
push edx
jmp 0x4a8543
cmp byte [esi + 0x2a5], 0
je 0x4a8562
mov eax, ebx
call fcn.0046aab0
cmp ax, 0x400
jae 0x4a8562
add esi, 0x380
mov dword [esp + 0x14], esi
call fcn.00470a50
test al, al
je 0x4a8538
mov ecx, dword [edi + 0x14]
lea eax, [esp + 0x20]
push eax
call fcn.004644a0
mov dword [esp + 0x18], eax
push ebx
lea esi, [esp + 0x6c]
mov dword [esp + 0x94], 4
call fcn.00439710
mov edx, dword [esp + 0x18]
mov ecx, esi
lea eax, [esp + 0x2c]
call fcn.00451640
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x98], 5
call fcn.004cd100
mov byte [esp + 0x90], 4
lea edx, [esp + 0x2c]
push edx
call fcn.0044e810
lea eax, [esp + 0x20]
mov dword [esp + 0x90], 0xffffffff
call fcn.00482950
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi + 0x14]
push 2
push eax
push ebx
push ecx
call fcn.00469840
xor eax, eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [edi + 0x14]
test byte [edx + 0x545], 0x40
je 0x4a85ff
push ebx
lea esi, [esp + 0x6c]
call fcn.00439710
mov esi, dword [esp + 0x14]
add esi, 0x9f0
lea ecx, [esp + 0x68]
call fcn.004daa60
test al, 1
je 0x4a85ff
mov esi, dword [esp + 0x14]
add esi, 0x380
mov dword [esp + 0x14], esi
call fcn.00470a50
test al, al
je 0x4a8538
mov ecx, dword [edi + 0x14]
lea eax, [esp + 0x20]
push eax
call fcn.004644a0
mov dword [esp + 0x18], eax
push ebx
lea esi, [esp + 0x6c]
mov dword [esp + 0x94], 6
call fcn.00439710
mov edx, dword [esp + 0x18]
mov ecx, esi
lea eax, [esp + 0x2c]
call fcn.00451640
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x98], 7
call fcn.004cd100
mov byte [esp + 0x90], 6
jmp 0x4a851a
mov edx, dword [edi + 0x14]
mov eax, dword [edx + 0x2e8]
cmp byte [eax + 0xbc], 0
push ebx
je 0x4a86a6
lea esi, [esp + 0x30]
call fcn.00439710
mov ecx, esi
push ecx
lea ebx, [esp + 0x6c]
call fcn.004982a0
mov ebx, dword [ebp + 0xc]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
push ebx
sub esp, 0xc
mov eax, esp
mov dword [eax + 4], edx
mov edx, dword [esp + 0x7c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax], 0
mov dword [esp + 0x28], esp
sub esp, 0xc
mov eax, esp
lea esi, [esp + 0x48]
mov dword [esp + 0x34], esp
mov dword [eax], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
call fcn.004a98b0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 8]
add esp, 0x1c
lea esi, [esp + 0x74]
lea edi, [esp + 0x20]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
call fcn.0046aaf0
test al, al
je 0x4a874c
jmp 0x4a88ae
lea esi, [esp + 0x6c]
mov byte [esp + 0x1c], 0
call fcn.00439710
mov eax, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
push eax
sub esp, 0xc
mov edi, esp
mov dword [esp + 0x28], esp
call fcn.0044de30
sub esp, 0xc
mov esi, esp
mov dword [esp + 0x34], esp
call fcn.0046aa80
lea ecx, [esp + 0x84]
lea esi, [esp + 0x48]
call fcn.00498590
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
add esp, 0x1c
lea edi, [esp + 0x2c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.0044de30
mov esi, eax
lea edi, [esp + 0x20]
call fcn.0046aaf0
test al, al
je 0x4a8749
mov ecx, dword [ebp + 0xc]
push ecx
lea esi, [esp + 0x6c]
call fcn.00439710
mov eax, edi
call fcn.004d1320
mov ecx, eax
mov ecx, dword [ecx]
lea eax, [esp + 0x2c]
call fcn.0044de60
mov ecx, esi
mov edx, eax
call fcn.00439100
test al, al
jne 0x4a88ab
mov ebx, dword [ebp + 0xc]
push ebx
lea esi, [esp + 0x6c]
call fcn.00439710
cmp dword [esp + 0x68], 1
sete al
test al, al
mov byte [esp + 0x13], al
je 0x4a877f
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x14]
mov eax, dword [edx + 0x2e8]
lea ecx, [eax + 0x2e4]
call fcn.004a90f0
jmp 0x4a8799
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [ecx + 0x2e8]
lea ecx, [eax + 0x2c8]
call fcn.004a90f0
mov edi, dword [ebp + 8]
mov esi, eax
test esi, esi
je 0x4a8548
cmp byte [esp + 0x13], 0
mov ecx, 0x1f4
je 0x4a87de
mov edx, dword [edi + 0x14]
mov eax, dword [edx + 0x2e8]
mov dword [eax + 0x2f8], ecx
mov dword [eax + 0x2f4], ecx
mov ecx, dword [ebp + 0x10]
push ebx
mov dl, 1
mov edi, esi
mov dword [esp + 0x94], 8
call fcn.004a60d0
jmp 0x4a880b
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x2e8]
mov dword [eax + 0x2dc], ecx
mov dword [eax + 0x2d8], ecx
mov eax, dword [ebp + 0x10]
push ebx
mov cl, 1
mov edi, esi
mov dword [esp + 0x94], 9
call fcn.004a5fe0
movsx ecx, byte [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [esp + 0x90], 0xffffffff
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x2c]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x28], esp
mov dword [eax], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
push esi
mov eax, edi
call fcn.004a7dc0
test al, al
jne 0x4a8881
cmp byte [esp + 0x13], al
je 0x4a8867
mov edx, dword [edi + 0x14]
mov eax, dword [edx + 0x2e8]
add eax, 0x2e4
mov edx, esi
call fcn.004a9110
jmp 0x4a8548
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x2e8]
add eax, 0x2c8
mov edx, esi
call fcn.004a9110
jmp 0x4a8548
mov ecx, dword [ebp + 0x10]
mov edx, dword [edi + 0x14]
push 1
push ecx
push ebx
push edx
call fcn.00469840
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp + 0xc]
lea eax, [esp + 0x20]
call fcn.004d1320
mov esi, dword [eax]
movsx eax, byte [ebp + 0x14]
mov edi, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push eax
mov eax, esi
call fcn.004a7f80
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 0x14]
push 0
push ebx
push ecx
push edx
call fcn.00469840
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10