Function at 0x410770
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590403
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x5fcff4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebx + 8]
movups xmm0, xmmword [ebx + 0x10]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x38], eax
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 4], 1
xorps xmm0, xmm0
push 0x20
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
call fcn.00417cca
movups xmm0, xmmword [str.api_connect_to_ap]
mov ecx, eax
mov dword [ebp - 0x1c], 0x12
mov dword [ebp - 0x2c], ecx
add esp, 4
mov dword [ebp - 0x18], 0x1f
movups xmmword [ecx], xmm0
mov ax, word [0x5dc2d0]
mov word [ecx + 0x10], ax
mov byte [ecx + 0x12], 0
mov byte [ebp - 4], 2
lea ecx, [ebx + 0x20]
cmp dword [ebx + 0x34], 0x10
mov edx, dword [ebp - 0x1c]
cmovae ecx, dword [ebx + 0x20]
mov eax, dword [ebp - 0x18]
mov edi, dword [ebx + 0x30]
sub eax, edx
mov dword [ebp - 0x30], edx
push edi
push ecx
cmp edi, eax
ja 0x410865
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
lea eax, [edx + edi]
cmovae esi, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
lea eax, [esi + edx]
push eax
call fcn.005641f0
mov ecx, dword [ebp - 0x30]
lea eax, [edi + esi]
add esp, 0xc
mov byte [eax + ecx], 0
jmp 0x410871
push dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
push edi
call fcn.00407050
mov edx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
cmp eax, 1
jb 0x410898
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov word [eax + ecx], 0x20
jmp 0x4108ac
push 1
push 0x5dc2ac
push dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
push 1
call fcn.00407050
mov edi, dword [ebx + 0x48]
test edi, edi
jne 0x4109b3
mov ecx, dword [ebx + 0x4c]
mov dword [ebp - 0x30], ecx
cmp ecx, 8
jb 0x4108ec
cmp ecx, 0x10
mov dword [ebx + 0x48], 8
push 8
lea esi, [ebx + 0x38]
cmovae esi, dword [ebx + 0x38]
push str.12345678
push esi
call fcn.005641f0
add esp, 0xc
mov byte [esi + 8], 0
jmp 0x4109b0
mov edx, ecx
mov eax, closesocket
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x410927
mov ecx, closesocket
mov edi, closesocket
add ecx, 0x23
push ecx
call fcn.00417cca
add esp, 4
test eax, eax
je 0x410b0c
mov ecx, dword [ebp - 0x30]
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x410961
lea eax, [ecx + edx]
mov edi, 0xf
cmp eax, edi
cmova edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x41094b
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x410b07
jmp 0x410908
test eax, eax
je 0x41095f
push eax
call fcn.00417cca
mov ecx, dword [ebp - 0x30]
add esp, 4
mov esi, eax
jmp 0x410961
xor esi, esi
mov dword [ebx + 0x48], 8
mov dword [ebx + 0x4c], edi
mov dword [esi], 0x34333231
mov dword [esi + 4], 0x38373635
mov byte [esi + 8], 0
cmp ecx, 0x10
jb 0x4109ad
mov edx, dword [ebx + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4109a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410b0c
push ecx
push edx
call fcn.00561389
add esp, 8
mov dword [ebx + 0x38], esi
mov edi, dword [ebx + 0x48]
cmp dword [ebx + 0x4c], 0x10
lea ecx, [ebx + 0x38]
mov edx, dword [ebp - 0x1c]
cmovae ecx, dword [ebx + 0x38]
mov eax, dword [ebp - 0x18]
sub eax, edx
mov dword [ebp - 0x30], edx
push edi
push ecx
cmp edi, eax
ja 0x4109f8
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
lea eax, [edi + edx]
cmovae esi, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
lea eax, [esi + edx]
push eax
call fcn.005641f0
mov ecx, dword [ebp - 0x30]
lea eax, [edi + esi]
add esp, 0xc
mov byte [eax + ecx], 0
jmp 0x410a04
push dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
push edi
call fcn.00407050
sub esp, 0x18
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00406f50
movups xmm0, xmmword [ebp - 0x50]
mov esi, dword [ebp - 0x3c]
sub esp, 0x10
mov ecx, dword [ebp - 0x34]
mov eax, esp
push dword [ebp - 0x38]
movups xmmword [eax], xmm0
push esi
call fcn.0040fc50
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x410a61
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410a57
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410b0c
push ecx
push edx
call fcn.00561389
add esp, 8
mov ecx, dword [ebx + 0x34]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0x10
jb 0x410aa3
mov edx, dword [ebx + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410a99
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410b0c
push ecx
push edx
call fcn.00561389
add esp, 8
mov ecx, dword [ebx + 0x4c]
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0xf
mov byte [ebx + 0x20], 0
cmp ecx, 0x10
jb 0x410ae5
mov edx, dword [ebx + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410adb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410b0c
push ecx
push edx
call fcn.00561389
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00560f1e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x48
call fcn.00407360
call fcn.00567a6f
int3