Function at 0x5bd010
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc84
mov eax, dword [0x6a60f0]
xor eax, ebp
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x848], 0
mov dword [ebp - 0xc78], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 8], 0
mov byte [ebp - 0xc70], 0
push 0x400
push 0
lea eax, [ebp - 0xc6f]
push eax
call fcn.005336b0
add esp, 0xc
mov byte [ebp - 0x840], 0
push 0x400
push 0
lea ecx, [ebp - 0x83f]
push ecx
call fcn.005336b0
add esp, 0xc
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov edx, dword [0x69b9dc]
push edx
call fcn.00529c70
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x430], 0
push 0x400
push 0
lea eax, [ebp - 0x42f]
push eax
call fcn.005336b0
add esp, 0xc
push 1
call fcn.005be420
add esp, 4
test eax, eax
jne 0x5bd0ea
mov eax, dword [ebp - 0x18]
jmp 0x5bd5ce
push 0
push 0x20
push 0
lea ecx, [ebp - 0x868]
push ecx
call fcn.005298c0
add esp, 0x10
mov dword [ebp - 0x868], 2
mov dword [ebp - 0x860], 1
mov dword [ebp - 0x864], 2
cmp dword [ebp + 0xc], 0
je 0x5bd15b
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.00529130
add esp, 8
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x430]
push ecx
call fcn.005295b0
add esp, 0x10
push 0x400
lea edx, [ebp - 0x430]
push edx
call fcn.00596150
add esp, 8
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x430]
push ecx
call fcn.005a35a0
add esp, 8
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.0057f7a0
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5bd1a7
mov eax, dword [ebp - 0x10]
push eax
call fcn.00537cab
add esp, 4
cmp eax, 6
jne 0x5bd1a7
cmp dword [ebp + 0x10], 0
jne 0x5bd1a7
mov dword [ebp - 0x864], 0x17
cmp dword [ebp - 0x14], 0
je 0x5bd1b8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc7c], ecx
jmp 0x5bd1c4
lea edx, [ebp - 0x430]
mov dword [ebp - 0xc7c], edx
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x868]
push ecx
push 0
mov edx, dword [ebp - 0xc7c]
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5bd1f3
cmp dword [ebp - 0x848], 0
jne 0x5bd255
cmp dword [ebp + 0x10], 0
jne 0x5bd255
cmp dword [ebp - 0x864], 0x17
jne 0x5bd20e
mov dword [ebp - 0x864], 2
jmp 0x5bd218
mov dword [ebp - 0x864], 0x17
cmp dword [ebp - 0x14], 0
je 0x5bd229
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc80], eax
jmp 0x5bd235
lea ecx, [ebp - 0x430]
mov dword [ebp - 0xc80], ecx
lea edx, [ebp - 0x848]
push edx
lea eax, [ebp - 0x868]
push eax
push 0
mov ecx, dword [ebp - 0xc80]
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.00529e20
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x5bd27a
mov eax, dword [ebp - 0x14]
push eax
call fcn.005844f0
add esp, 4
mov dword [ebp - 0x14], 0
cmp dword [ebp - 8], 0
je 0x5bd294
mov ecx, dword [ebp - 8]
push ecx
call fcn.005be710
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x5bd5ce
cmp dword [ebp - 0x848], 0
jne 0x5bd2a5
mov eax, dword [ebp - 0x18]
jmp 0x5bd5ce
mov edx, dword [ebp - 0x848]
mov dword [ebp - 0xc78], edx
mov eax, dword [ebp - 0xc78]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c], ecx
push 0
push 0x401
push 0
lea edx, [ebp - 0xc70]
push edx
call fcn.005298c0
add esp, 0x10
push 2
push 0
push 0
push 0x401
lea eax, [ebp - 0xc70]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0xc78]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5bd325
mov ecx, dword [ebp - 8]
push ecx
call fcn.005be710
add esp, 4
mov edx, dword [ebp - 0x848]
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x18]
jmp 0x5bd5ce
push 4
push str.fe80
lea eax, [ebp - 0xc70]
push eax
call fcn.005366d3
add esp, 0xc
test eax, eax
je 0x5bd3a6
mov ecx, dword [ebp - 0xc78]
cmp dword [ecx + 4], 0x17
jne 0x5bd3a6
push 0x401
lea edx, [ebp - 0xc70]
push edx
call fcn.00583d50
add esp, 8
add eax, 1
push eax
lea eax, [ebp - 0xc70]
push eax
lea ecx, [ebp - 0x840]
push ecx
call fcn.00583db0
add esp, 0xc
push 4
push str.fec0
lea edx, [ebp - 0xc70]
push edx
call fcn.005366d3
add esp, 0xc
test eax, eax
jne 0x5bd398
jmp 0x5bd423
mov eax, dword [ebp - 0xc78]
mov dword [ebp - 0x434], eax
jmp 0x5bd407
mov ecx, dword [ebp - 0xc78]
cmp dword [ecx + 4], 2
jne 0x5bd407
cmp dword [ebp - 0x434], 0
jne 0x5bd407
mov edx, dword [ebp - 0xc78]
mov dword [ebp - 0x434], edx
push 0x401
lea eax, [ebp - 0xc70]
push eax
call fcn.00583d50
add esp, 8
add eax, 1
push eax
lea ecx, [ebp - 0xc70]
push ecx
lea edx, [ebp - 0x840]
push edx
call fcn.00583db0
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x5bd407
mov dword [ebp - 0xc78], 0
jmp 0x5bd423
mov eax, dword [ebp - 0xc78]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0xc78], ecx
cmp dword [ebp - 0xc78], 0
jne 0x5bd2b1
cmp dword [ebp - 0xc78], 0
jne 0x5bd49e
cmp dword [ebp - 0x434], 0
je 0x5bd489
push 0x401
lea edx, [ebp - 0x840]
push edx
call fcn.00583d50
add esp, 8
test eax, eax
je 0x5bd489
mov eax, dword [ebp - 0x434]
mov dword [ebp - 0xc78], eax
push 0x401
lea ecx, [ebp - 0x840]
push ecx
call fcn.00583d50
add esp, 8
add eax, 1
push eax
lea edx, [ebp - 0x840]
push edx
lea eax, [ebp - 0xc70]
push eax
call fcn.00583db0
add esp, 0xc
jmp 0x5bd49e
mov ecx, dword [ebp - 0x848]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x18]
jmp 0x5bd5ce
mov edx, dword [ebp - 0x848]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0xc74], eax
mov ecx, dword [ebp - 0x848]
mov dword [ebp - 0x844], ecx
jmp 0x5bd4ca
mov edx, dword [ebp - 0x844]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x844], eax
cmp dword [ebp - 0x844], 0
je 0x5bd521
mov ecx, dword [ebp - 0x844]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0xc74], edx
cmp dword [ebp - 0xc74], 0
jne 0x5bd4ed
jmp 0x5bd4bb
push 0
push 0x3a
mov eax, dword [ebp - 0xc74]
push eax
call fcn.005291a0
add esp, 0xc
test eax, eax
je 0x5bd506
jmp 0x5bd4bb
push 0
push 0x2e
mov ecx, dword [ebp - 0xc74]
push ecx
call fcn.005291a0
add esp, 0xc
test eax, eax
je 0x5bd51f
jmp 0x5bd521
jmp 0x5bd4bb
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0xc74]
push eax
call fcn.005a3ab0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5bd548
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc84], ecx
jmp 0x5bd554
mov edx, dword [ebp - 0xc74]
mov dword [ebp - 0xc84], edx
lea eax, [ebp - 0xc70]
push eax
mov ecx, dword [ebp - 0xc84]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc78]
mov ecx, dword [eax + 4]
push ecx
call fcn.005be270
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], 0
je 0x5bd594
mov edx, dword [ebp - 4]
push edx
call fcn.005844f0
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc78]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0xc78]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0xc78]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.005be380
add esp, 0x10
mov ecx, dword [ebp - 0x848]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00532ffe
mov esp, ebp
pop ebp
ret