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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x32
push 0
push 0
dec ecx
jne 0x5051ec
push ecx
push ebx
push esi
mov dword [ebp - 4], edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
call fcn.00405814
xor eax, eax
push ebp
push 0x5059d9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [setsockopt]
mov edx, dword [edx + 0x154]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.004056ac
mov eax, dword [ebp - 8]
call fcn.0040ada0
test al, al
je 0x505994
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x28]
lea edx, [eax + 0x14]
mov eax, dword [ebp - 0x28]
call fcn.0050385c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x42c94c]
call fcn.0042ca04
mov dword [ebp - 0x2c], eax
mov dl, 1
mov eax, dword [0x41d624]
call fcn.00404400
mov dword [ebp - 0x30], eax
mov dl, 1
mov eax, dword [0x41d624]
call fcn.00404400
mov dword [ebp - 0x34], eax
mov dl, 1
mov eax, dword [0x41d624]
call fcn.00404400
mov dword [ebp - 0x38], eax
xor eax, eax
push ebp
push 0x50598b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x30]
call fcn.004212dc
mov dword [ebp - 0x40], eax
xor eax, eax
push ebp
push 0x505956
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x505928
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x40]
call fcn.00420d44
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0xc]
mov edx, dword [setsockopt]
mov edx, dword [edx + 0x6608]
call fcn.004057bc
jne 0x505437
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
mov ecx, 0x5059f0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x28]
add eax, 0x1c
call fcn.004053e8
mov eax, dword [ebp - 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
mov ecx, 0x505a08
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x20]
mov eax, dword [ebp - 0x28]
fstp qword [eax + 0x20]
wait
mov eax, dword [ebp - 0x28]
push dword [eax + 0x2c]
push dword [eax + 0x28]
mov ecx, 0x505a20
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x20]
mov eax, dword [ebp - 0x28]
fstp qword [eax + 0x28]
wait
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax + 0x6c]
push eax
mov ecx, 0x505a38
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 0x28]
mov byte [edx + 0x6c], al
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x70]
push eax
mov ecx, 0x505a4c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x70], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x74]
push eax
mov ecx, 0x505a60
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x74], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x78]
push eax
mov ecx, 0x505a74
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x78], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x7c]
push eax
mov ecx, 0x505a8c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x7c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x80]
push eax
mov ecx, 0x505aa4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x80], eax
mov eax, dword [ebp - 0x28]
call fcn.00505d2c
jmp 0x505928
mov eax, dword [ebp - 0xc]
mov edx, dword [setsockopt]
mov edx, dword [edx + 0x660c]
call fcn.004057bc
jne 0x5054dc
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov eax, dword [ebp - 0x34]
call fcn.004212dc
mov dword [ebp - 0x44], eax
xor eax, eax
push ebp
push 0x5054d5
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x5054ab
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x44]
call fcn.00420d44
push 0
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 0x68], 0x3d
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.004e3598
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x44]
call fcn.00420d5c
test al, al
jne 0x50547a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505928
cmp dword [ebp - 0x44], 0
je 0x5054d4
mov dl, 1
mov eax, dword [ebp - 0x44]
call fcn.00404420
ret
mov eax, dword [ebp - 0xc]
mov edx, dword [setsockopt]
mov edx, dword [edx + 0x6610]
call fcn.004057bc
jne 0x5055af
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov eax, dword [ebp - 0x34]
call fcn.004212dc
mov dword [ebp - 0x44], eax
xor eax, eax
push ebp
push 0x5055a8
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x50557e
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x44]
call fcn.00420d44
push 0
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 0x68], 0x3d
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.004e3598
cmp dword [ebp - 0x1c], 0
je 0x50557e
cmp dword [ebp - 0x20], 0
je 0x50557e
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x20]
call fcn.0040a284
mov eax, dword [ebp - 0x6c]
xor edx, edx
call fcn.0040a9ec
push eax
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0x1c]
call fcn.0040a284
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x44]
call fcn.00420d5c
test al, al
jne 0x50551f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505928
cmp dword [ebp - 0x44], 0
je 0x5055a7
mov dl, 1
mov eax, dword [ebp - 0x44]
call fcn.00404420
ret
mov eax, dword [ebp - 0xc]
mov edx, dword [setsockopt]
mov edx, dword [edx + 0x6614]
call fcn.004057bc
jne 0x505665
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov eax, dword [ebp - 0x34]
call fcn.004212dc
mov dword [ebp - 0x44], eax
xor eax, eax
push ebp
push 0x50565e
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x505634
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x44]
call fcn.00420d44
push 0
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 0x68], 0x3d
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.004e3598
cmp dword [ebp - 0x1c], 0
je 0x505634
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x1c]
call fcn.0040a284
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x44]
call fcn.00420d5c
test al, al
jne 0x5055f2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505928
cmp dword [ebp - 0x44], 0
je 0x50565d
mov dl, 1
mov eax, dword [ebp - 0x44]
call fcn.00404420
ret
mov eax, dword [ebp - 0xc]
mov edx, dword [setsockopt]
mov edx, dword [edx + 0x6618]
call fcn.004057bc
jne 0x505928
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov eax, dword [ebp - 0x34]
call fcn.004212dc
mov dword [ebp - 0x44], eax
xor eax, eax
push ebp
push 0x505921
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x5058f3
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x44]
call fcn.00420d44
push 0
lea eax, [ebp - 0x17c]
push eax
mov byte [ebp - 0x68], 0x3d
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.004e3598
mov edx, dword [ebp - 0x17c]
lea eax, [ebp - 0x178]
mov ecx, 0xff
call fcn.00405630
lea edx, [ebp - 0x178]
lea eax, [ebp - 0x59]
mov cl, 0x10
call fcn.004039d0
or edx, 0xffffffff
mov eax, dword [ebp - 0x18]
call fcn.0040a9ec
mov ebx, eax
lea eax, [ebp - 0x184]
lea edx, [ebp - 0x59]
call fcn.004055f8
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x180]
call fcn.0040a284
mov edx, dword [ebp - 0x180]
lea eax, [ebp - 0x178]
mov ecx, 0xff
call fcn.00405630
lea edx, [ebp - 0x178]
lea eax, [ebp - 0x59]
mov cl, 0x10
call fcn.004039d0
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, ebx
dec eax
sub eax, 0x63
jae 0x5058f3
cmp byte [ebp - 0x59], 0
je 0x5058f3
push dword [ebp - 0xc]
push 0x505ac0
lea edx, [ebp - 0x18c]
mov eax, ebx
call fcn.0040a790
push dword [ebp - 0x18c]
push 0x505ac0
lea eax, [ebp - 0x190]
lea edx, [ebp - 0x59]
call fcn.004055f8
push dword [ebp - 0x190]
lea eax, [ebp - 0x188]
mov edx, 5
call fcn.00405728
mov edx, dword [ebp - 0x188]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
call dword [esi + 0x4c]
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x5058f3
mov eax, 0x16
call fcn.00402f94
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov byte [eax], bl
mov eax, dword [ebp - 0x3c]
inc eax
lea edx, [ebp - 0x59]
mov cl, 0x10
call fcn.004039d0
mov dl, 1
mov eax, dword [0x41d624]
call fcn.00404400
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x12], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x3c]
call fcn.0041fa54
mov eax, dword [ebp - 0x38]
call fcn.004212dc
mov dword [ebp - 0x48], eax
xor eax, eax
push ebp
push 0x5058ec
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x5058be
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x48]
call fcn.00420d44
push 0
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 0x68], 0x3d
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.004e3598
lea edx, [ebp - 0x194]
mov eax, dword [ebp - 0x24]
call fcn.0040a284
mov edx, dword [ebp - 0x194]
lea eax, [ebp - 0x24]
call fcn.0040542c
cmp dword [ebp - 0x24], 0
je 0x5058be
cmp dword [ebp - 0x20], 0
je 0x5058be
cmp ebx, 1
jne 0x505888
mov eax, dword [ebp - 0x28]
add eax, 0x18
mov edx, dword [ebp - 0x24]
call fcn.004053e8
mov eax, 0xe
call fcn.00402f94
mov esi, eax
mov word [esi + 0xc], 0
xor eax, eax
mov dword [esi], eax
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.0040ed78
fstp qword [esi + 4]
wait
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x12]
mov ecx, esi
mov edx, dword [ebp - 0x24]
mov esi, dword [eax]
call dword [esi + 0x3c]
mov eax, dword [ebp - 0x48]
call fcn.00420d5c
test al, al
jne 0x50582a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5058f3
cmp dword [ebp - 0x48], 0
je 0x5058eb
mov dl, 1
mov eax, dword [ebp - 0x48]
call fcn.00404420
ret
mov eax, dword [ebp - 0x44]
call fcn.00420d5c
test al, al
jne 0x5056ab
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505928
cmp dword [ebp - 0x44], 0
je 0x505920
mov dl, 1
mov eax, dword [ebp - 0x44]
call fcn.00404420
ret
mov eax, dword [ebp - 0x40]
call fcn.00420d5c
test al, al
jne 0x5052e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50595d
cmp dword [ebp - 0x40], 0
je 0x505955
mov dl, 1
mov eax, dword [ebp - 0x40]
call fcn.00404420
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5059e0
lea eax, [ebp - 0x194]
mov edx, 7
call fcn.004053b8
lea eax, [ebp - 0x78]
mov edx, 4
call fcn.004053b8
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.004053b8
lea eax, [ebp - 0x24]
mov edx, 9
call fcn.004053b8
ret