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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x5bafe0]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xa4]
push esi
push edi
xor edi, edi
mov dword [esp + 0x20], eax
mov eax, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x2c], edi
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x50a2e0
sub eax, esi
je 0x50a420
cmp byte [ecx], 0x3d
je 0x50a420
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.0050aab0
add esp, 0xc
cmp eax, edi
jne 0x50a6df
cmp dword [esp + 0xc], edi
je 0x50a420
mov edx, dword [ebx + 4]
mov eax, dword [0x5c27a0]
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [eax + 0x2c]
push edi
push edx
call ecx
test eax, eax
je 0x50a364
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x50a347
push eax
call dword [0x5ba020]
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0052b755
add esp, 0x8c
ret
mov eax, dword [ebx]
mov ecx, dword [0x5c27a0]
lea edx, [esp + 0x18]
push edx
mov edx, dword [ecx + 8]
push 1
push eax
call edx
test eax, eax
je 0x50a3ac
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x50a38f
push eax
call dword [0x5ba020]
add esp, 4
pop edi
pop esi
mov eax, 0x38
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0052b755
add esp, 0x8c
ret
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x30]
push edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], 2
mov dword [esp + 0x54], eax
mov dword [esp + 0x38], 0xa
mov dword [esp + 0x3c], ecx
call fcn.004e7710
mov edx, dword [ebx + 4]
add esp, 4
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [0x5c27a0]
push edi
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], edi
mov dword [esp + 0x48], edi
mov ecx, dword [eax + 0x68]
push edx
call ecx
test eax, eax
je 0x50a43d
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x50a420
push eax
call dword [0x5ba020]
add esp, 4
pop edi
pop esi
mov eax, 0x3d
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0052b755
add esp, 0x8c
ret
cmp dword [esp + 0x3c], 4
jne 0x50a40e
mov eax, dword [esp + 0x44]
mov edx, dword [0x5c27a0]
mov ebx, dword [eax]
push eax
mov eax, dword [edx + 0x40]
call eax
movzx esi, bl
test esi, reloc.WS2_32.dll_accept
je 0x50a40e
and ebx, 0xffffff00
push ebx
call dword [sym.imp.WS2_32.dll_ntohl]
cmp eax, edi
jbe 0x50a474
xor eax, eax
push ebp
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [esp + 0x70]
mov ebp, eax
push ecx
or ebp, esi
call dword [0x5ba01c]
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
cmp esi, edi
jne 0x50a4a3
mov eax, dword [esp + 0x10]
cmp eax, edi
jmp 0x50a620
mov eax, dword [esp + 0x1c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x50a4b0
sub eax, edx
lea ebx, [eax + 5]
push ebx
call dword [0x5ba01c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x50a4db
push esi
call dword [0x5ba020]
add esp, 4
jmp 0x50a61a
mov dword [edi], ebp
mov ecx, dword [esp + 0x1c]
lea edx, [edi + 4]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x50a4e4
mov edx, dword [esp + 0x6c]
push edx
call dword [0x5ba01c]
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x50a518
push edi
call dword [0x5ba020]
push esi
call dword [0x5ba020]
add esp, 8
jmp 0x50a61a
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x74]
push ebx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 3
mov dword [esp + 0x64], eax
mov dword [esp + 0x7c], 2
mov dword [esp + 0x80], esi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x88], 1
mov dword [esp + 0x8c], edi
call fcn.004e7710
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x80], eax
push 0
lea eax, [esp + 0x5c]
push eax
mov eax, dword [0x5c27a0]
mov dword [esp + 0x94], edx
mov edx, dword [ecx + 4]
push reloc.WS2_32.dll_accept
mov dword [esp + 0x9c], 9
mov dword [esp + 0xa0], ebp
mov ecx, dword [eax + 0x64]
push edx
call ecx
test eax, eax
je 0x50a5dc
push ebp
call dword [0x5ba020]
push edi
call dword [0x5ba020]
push esi
call dword [0x5ba020]
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x50a62c
push eax
call dword [0x5ba020]
add esp, 4
mov eax, 0x1b
jmp 0x50a6de
mov ebx, dword [esp + 0x8c]
add ebx, dword [esp + 0x80]
add ebx, dword [esp + 0x74]
push ebx
call dword [0x5ba01c]
mov esi, eax
add esp, 4
test esi, esi
jne 0x50a636
push ebp
call dword [0x5ba020]
push edi
call dword [0x5ba020]
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x5ba020]
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x50a62c
push eax
call dword [0x5ba020]
add esp, 4
mov eax, 0x1b
jmp 0x50a6de
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x7c]
push edx
push eax
push esi
call fcn.00530190
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x94]
push ecx
mov dword [esp + 0x24], eax
push edx
add eax, esi
push eax
call fcn.00530190
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xac]
push eax
add edx, esi
add edx, dword [esp + 0x30]
push ecx
push edx
call fcn.00530190
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
push eax
push ecx
push ebx
push esi
push edx
call fcn.0050ad50
push esi
mov ebx, eax
call dword [0x5ba020]
push ebp
call dword [0x5ba020]
add esp, 0x40
push edi
call dword [0x5ba020]
mov eax, dword [esp + 0x1c]
push eax
call dword [0x5ba020]
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x50a6dc
push eax
call dword [0x5ba020]
add esp, 4
mov eax, ebx
pop ebp
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052b755
add esp, 0x8c
ret