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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x474fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x492740]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov eax, dword [0x492740]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov edi, ecx
je 0x4112e1
mov eax, 1
mov esi, ebx
call fcn.004105c0
mov ecx, dword [ebx + 4]
add ecx, dword [ebx + 0xc]
mov byte [ecx], 3
add dword [ebx + 0xc], 1
lea edx, [esp + 0x24]
push edx
mov ecx, edi
mov dword [esp + 0x28], 0x483374
call fcn.0040ed30
mov dword [esp + 0x90], 0
mov esi, dword [0x49757c]
lea ecx, [esp + 0xc]
call fcn.00406c20
cmp dword [0x49757c], esi
ja 0x41131f
cmp esi, dword [0x497580]
jbe 0x411324
call fcn.0043b4b1
mov dword [esp + 0xc], 0x497578
mov dword [esp + 0x10], esi
mov esi, dword [0x497580]
lea ecx, [esp + 0x14]
call fcn.00406c20
cmp dword [0x49757c], esi
ja 0x41134f
cmp esi, dword [0x497580]
jbe 0x411354
call fcn.0043b4b1
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x14], 0x497578
mov dword [esp + 0x18], esi
je 0x41136f
cmp eax, 0x497578
je 0x411378
call fcn.0043b4b1
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x18]
je 0x4114c7
test eax, eax
jne 0x411393
call fcn.0043b4b1
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
cmp edx, dword [eax + 8]
jb 0x4113a1
call fcn.0043b4b1
mov eax, dword [esp + 0x10]
push eax
lea edi, [esp + 0x28]
call fcn.0040e930
test al, al
je 0x41149f
cmp dword [esp + 0xc], 0
jne 0x4113c3
call fcn.0043b4b1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
cmp eax, dword [ecx + 8]
jb 0x4113d9
call fcn.0043b4b1
mov eax, dword [esp + 0x10]
mov edi, eax
mov eax, dword [eax + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx edx, ax
mov eax, 2
mov esi, ebx
mov dword [esp + 0x1c], edx
call fcn.004105c0
test al, al
je 0x41140e
mov eax, dword [ebx + 4]
add eax, dword [ebx + 0xc]
mov cx, word [esp + 0x1c]
mov word [eax], cx
add dword [ebx + 0xc], 2
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push edi
call fcn.00403ed0
mov ecx, ebx
call fcn.004104d0
cmp dword [esp + 0xc], 0
jne 0x411430
call fcn.0043b4b1
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
cmp eax, dword [edx + 8]
jb 0x411442
call fcn.0043b4b1
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040e560
mov ecx, dword [esp + 0x20]
push eax
push ebx
call fcn.004127f0
test al, al
je 0x41167f
cmp dword [esp + 0xc], 0
jne 0x41146f
call fcn.0043b4b1
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
cmp eax, dword [edx + 8]
jb 0x411481
call fcn.0043b4b1
mov eax, dword [esp + 0x2c]
cmp eax, 0x12
je 0x41148f
cmp eax, 0x13
jne 0x41149f
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
add ecx, 0x1c
call fcn.0040f030
cmp dword [esp + 0xc], 0
jne 0x4114ab
call fcn.0043b4b1
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
cmp ecx, dword [edx + 8]
jb 0x4114bd
call fcn.0043b4b1
add dword [esp + 0x10], 0x1c
jmp 0x411330
lea esi, [esp + 0x14]
lea ecx, [esp + 0x24]
call fcn.0040ebb0
jmp 0x4114e0
lea esi, [esp + 0x40]
lea ecx, [esp + 0x24]
call fcn.0040ec30
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4114fb
cmp eax, dword [esi]
je 0x411504
call fcn.0043b4b1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esi + 4]
je 0x41169f
test eax, eax
jne 0x41151e
call fcn.0043b4b1
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 4]
jne 0x41152c
call fcn.0043b4b1
mov eax, dword [esp + 0x18]
add eax, 0x10
push eax
lea ecx, [esp + 0x68]
call fcn.00403ed0
mov byte [esp + 0x90], 1
cmp dword [esp + 0x78], 0xa
jne 0x4115d6
lea ecx, [esp + 0x64]
call fcn.00404310
cmp byte [eax], 0x30
jne 0x4115d6
cmp dword [esp + 0x78], 1
jae 0x41156a
call fcn.0043b4b1
lea ecx, [esp + 0x64]
call fcn.00404310
add eax, 1
cmp byte [eax], 0x78
jne 0x4115d6
push 0x10
push 0
lea ecx, [esp + 0x6c]
call fcn.00403f40
push eax
call fcn.00441699
add esp, 0xc
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x4834ac
call fcn.004044b0
lea edi, [esp + 0x68]
call fcn.00415e10
add esp, 0x20
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x9c], 2
call fcn.00403f90
mov ecx, edi
mov byte [esp + 0x90], 1
call fcn.00403f20
mov eax, dword [esp + 0x78]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
mov eax, 2
mov esi, ebx
mov dword [esp + 0x1c], ecx
call fcn.004105c0
test al, al
je 0x41160a
mov edx, dword [ebx + 4]
add edx, dword [ebx + 0xc]
mov ax, word [esp + 0x1c]
mov word [edx], ax
add dword [ebx + 0xc], 2
sub esp, 0x1c
lea edx, [esp + 0x80]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00403ed0
mov ecx, ebx
call fcn.004104d0
cmp dword [esp + 0x14], 0
jne 0x411633
call fcn.0043b4b1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 4]
jne 0x411645
call fcn.0043b4b1
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add edx, 0x30
push edx
push ebx
call fcn.004127f0
test al, al
lea ecx, [esp + 0x64]
je 0x41167a
mov byte [esp + 0x90], 0
call fcn.00403f20
lea esi, [esp + 0x14]
call fcn.0040d580
jmp 0x4114e0
call fcn.00403f20
mov dword [esp + 0x90], 0xffffffff
lea esi, [esp + 0x24]
mov dword [esp + 0x24], 0x483374
call fcn.0040dca0
xor al, al
jmp 0x4116ea
mov eax, 3
mov esi, ebx
call fcn.004105c0
test al, al
je 0x4116cc
mov eax, dword [ebx + 4]
add eax, dword [ebx + 0xc]
mov cx, word [0x493c5c]
mov word [eax], cx
mov dl, byte [0x493c5e]
mov byte [eax + 2], dl
add dword [ebx + 0xc], 3
mov dword [esp + 0x90], 0xffffffff
lea esi, [esp + 0x24]
mov dword [esp + 0x24], 0x483374
call fcn.0040dca0
mov al, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0043aca7
mov esp, ebp
pop ebp
ret 8