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

Disassembly:
push 0xffffffffffffffff
push 0x4b1cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4ce0a0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ce0a0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [esp + 0x7c]
xor ebp, ebp
cmp dword [0x4d2450], ebp
mov dword [esp + 0x28], eax
je 0x4088c4
mov edi, 0xf
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebp
mov byte [esp + 0x4c], 0
mov dword [esp + 0x70], ebp
mov eax, dword [0x4d2408]
mov esi, dword [esp + 0x78]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push ebp
lea edx, [esp + 0x50]
push edx
push esi
push eax
mov eax, dword [ecx + 0x3c]
call eax
test eax, eax
jne 0x4088e5
mov dword [esp + 0x70], 0xffffffff
cmp dword [esp + 0x60], 0x10
jb 0x4088b7
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00481c39
add esp, 4
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebp
mov byte [esp + 0x4c], 0
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00481ba7
add esp, 0x60
ret
call fcn.00411990
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebp
mov byte [esp + 0x70], 1
mov eax, dword [0x4d2450]
movzx ecx, word [eax]
lea edx, [esp + 0x30]
push edx
push ecx
call fcn.00405640
mov eax, dword [0x4d2408]
mov edx, dword [eax]
add esp, 8
push esi
push eax
mov eax, dword [edx + 0x68]
call eax
cmp eax, 1
mov eax, dword [0x4d2470]
mov ecx, dword [eax + 4]
mov esi, dword [ecx]
mov edi, eax
sete bl
cmp edi, ebp
mov byte [esp + 0x1b], bl
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x3c], eax
je 0x408bed
lea esp, [esp]
cmp edi, dword [esp + 0x3c]
jne 0x408bed
cmp esi, ecx
sete al
test al, al
sete al
test al, al
je 0x408a93
cmp esi, dword [edi + 4]
je 0x408a8e
mov ebp, dword [esi + 8]
mov edx, dword [0x4d2450]
movzx ecx, word [ebp + 4]
movzx eax, word [edx]
cmp cx, ax
jne 0x4089e8
cmp bl, 1
jne 0x4089e8
movzx ecx, word [ebp + 6]
push ecx
call fcn.00406450
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x408a72
mov edx, dword [esp + 0x28]
mov esi, dword [ebx + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
add esi, 1
call edi
push eax
mov eax, dword [esp + 0x2c]
push eax
push esi
call edi
push eax
push esi
push 0x10001
push 0x400
call dword [sym.imp.KERNEL32.dll_CompareStringA]
sub eax, 2
jne 0x408a6a
mov cx, word [ebx + 0xe]
cmp cx, word [esp + 0x24]
jmp 0x408a1c
cmp word [ebp + 6], ax
jne 0x408a72
cmp dword [edx + 0x10], 3
jl 0x408a72
test bl, bl
jne 0x408a72
push ecx
call fcn.00406450
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x408a72
mov edi, dword [ebx + 0x14]
mov esi, dword [esp + 0x28]
add edi, 1
call fcn.00421bd0
test eax, eax
jne 0x408a6a
cmp byte [ebp + 8], 1
jne 0x408a46
cmp dword [esp + 0x60], 0x10
mov esi, dword [esp + 0x4c]
jae 0x408a33
lea esi, [esp + 0x4c]
mov edi, dword [ebx + 0x18]
add edi, 0x35
call fcn.00421bd0
test eax, eax
je 0x408aca
cmp byte [ebp + 8], 0
jne 0x408a6a
cmp dword [esp + 0x60], 0x10
mov esi, dword [esp + 0x4c]
jae 0x408a5b
lea esi, [esp + 0x4c]
mov edi, dword [ebx + 0x18]
add edi, 0x25
call fcn.00421bd0
test eax, eax
je 0x408aca
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp esi, dword [edi + 4]
je 0x408a8e
mov edx, dword [esi]
mov ecx, dword [esp + 0x2c]
mov bl, byte [esp + 0x1b]
mov dword [esp + 0x20], edx
mov esi, edx
xor ebp, ebp
jmp 0x408950
jmp fcn.00417a60
mov byte [esp + 0x70], 0
lea esi, [esp + 0x30]
call fcn.00411a20
mov dword [esp + 0x70], 0xffffffff
cmp dword [esp + 0x60], 0x10
jb 0x408abd
mov eax, dword [esp + 0x4c]
push eax
call fcn.00481c39
add esp, 4
mov dword [esp + 0x60], 0xf
jmp 0x4088bb
mov eax, dword [ebp + 0xd]
test eax, eax
mov edi, dword [esp + 0x78]
lea ebx, [ebp + 0xd]
je 0x408b4c
cmp eax, edi
je 0x408b4c
push eax
push str.server_cord_already_established_:_discarding_session:__d
push 0x1000000
call fcn.0042b670
mov eax, dword [0x4d2408]
mov edx, dword [ebx]
mov ecx, dword [eax]
add esp, 0xc
push 1
push edx
push eax
mov eax, dword [ecx + 0x5c]
call eax
lea eax, [esp + 0x1c]
mov esi, 0x513a64
call fcn.0040a490
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x408be8
cmp eax, esi
jne 0x408be8
mov edx, dword [esp + 0x20]
cmp edx, dword [0x513a68]
sete cl
test cl, cl
sete cl
test cl, cl
je 0x408b46
push edx
push eax
lea ecx, [esp + 0x44]
push ecx
push esi
call fcn.0040a1b0
mov dword [ebx], 0
cmp dword [ebx], edi
je 0x408ba2
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x40]
mov dword [ebx], edi
push eax
mov ebx, 0x513a64
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebp
call fcn.0040a0d0
cmp dword [esp + 0x60], 0x10
mov eax, dword [esp + 0x4c]
jae 0x408b7d
lea eax, [esp + 0x4c]
movzx ecx, word [esp + 0x24]
push ecx
push eax
push edi
push str.server_cord_established_:__d___s:_d_
push 0
call fcn.0042b670
mov eax, dword [0x4d2408]
mov edx, dword [eax]
add esp, 0x14
push edi
push eax
mov eax, dword [edx + 0x64]
call eax
mov byte [esp + 0x70], 0
lea esi, [esp + 0x30]
call fcn.00411a20
mov dword [esp + 0x70], 0xffffffff
cmp dword [esp + 0x60], 0x10
jb 0x408bcc
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00481c39
add esp, 4
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
mov eax, ebp
jmp 0x4088c6
jmp fcn.0040f0c0
jmp fcn.00417ad0