Function at 0x40dbc0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x414004]
xor eax, ebp
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x620]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040d5d0
add esp, 8
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 0
mov edx, 1
test edx, edx
je 0x40dcab
mov eax, dword [ebp - 0x21c]
movzx ecx, word [ebp + eax*2 - 0x620]
test ecx, ecx
je 0x40dc3a
mov edx, dword [ebp - 0x21c]
movzx eax, word [ebp + edx*2 - 0x61e]
test eax, eax
je 0x40dc3a
mov ecx, dword [ebp - 0x21c]
movzx edx, word [ebp + ecx*2 - 0x61c]
test edx, edx
jne 0x40dc46
mov dword [ebp - 0x21c], 0
jmp 0x40dcab
mov eax, dword [ebp - 0x21c]
movzx ecx, word [ebp + eax*2 - 0x620]
cmp ecx, 0x3a
jne 0x40dc97
mov edx, dword [ebp - 0x21c]
movzx eax, word [ebp + edx*2 - 0x61e]
cmp eax, 0x2f
jne 0x40dc97
mov ecx, dword [ebp - 0x21c]
movzx edx, word [ebp + ecx*2 - 0x61c]
cmp edx, 0x2f
jne 0x40dc97
mov eax, dword [ebp - 0x21c]
add eax, 3
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 1
jmp 0x40dcab
mov ecx, dword [ebp - 0x21c]
add ecx, 1
mov dword [ebp - 0x21c], ecx
jmp 0x40dbf7
cmp dword [ebp - 4], 0
je 0x40dd7a
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x40dcfc
lea ecx, [ebp - 0x624]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push str.http
lea eax, [ebp - 0x620]
push eax
call fcn.0040d710
add esp, 0x14
mov dword [ebp - 0x220], eax
cmp dword [ebp - 8], 1
jne 0x40dcfc
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 1
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x40dd3a
lea eax, [ebp - 0x624]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.https
lea edx, [ebp - 0x620]
push edx
call fcn.0040d710
add esp, 0x14
mov dword [ebp - 0x220], eax
cmp dword [ebp - 8], 1
jne 0x40dd3a
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
jne 0x40dd78
lea edx, [ebp - 0x624]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 0x4151f0
lea ecx, [ebp - 0x620]
push ecx
call fcn.0040d710
add esp, 0x14
mov dword [ebp - 0x220], eax
cmp dword [ebp - 8], 1
jne 0x40dd78
mov edx, dword [ebp + 0xc]
mov dword [edx], 3
jmp 0x40dd83
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x10], ecx
mov edx, 1
test edx, edx
je 0x40dde3
mov eax, dword [ebp - 0x10]
movzx ecx, word [ebp + eax*2 - 0x620]
test ecx, ecx
jne 0x40ddad
jmp 0x40dde3
mov edx, dword [ebp - 0x10]
movzx eax, word [ebp + edx*2 - 0x620]
cmp eax, 0x3a
jne 0x40ddc6
mov dword [ebp - 4], 1
jmp 0x40dde3
mov ecx, dword [ebp - 0x10]
movzx edx, word [ebp + ecx*2 - 0x620]
cmp edx, 0x2f
jne 0x40ddd8
jmp 0x40dde3
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x40dd93
mov ecx, dword [ebp - 0x21c]
cmp ecx, dword [ebp - 0x10]
jne 0x40de06
mov edx, dword [ebp + 0xc]
mov dword [edx + 4], 0
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov word [ecx + 0xc], ax
jmp 0x40df2e
mov edx, dword [ebp + 0xc]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x10]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x620]
push edx
call fcn.0040d580
add esp, 0x10
mov eax, dword [ebp - 0x10]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x620]
push edx
call fcn.0040d7e0
add esp, 0xc
test eax, eax
je 0x40deab
mov eax, dword [ebp - 0x10]
mov cx, word [ebp + eax*2 - 0x620]
mov word [ebp - 0xc], cx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov word [ebp + eax*2 - 0x620], dx
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x21c]
lea eax, [ebp + edx*2 - 0x620]
push eax
call fcn.0040d680
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dx, word [ebp - 0xc]
mov word [ebp + ecx*2 - 0x620], dx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
jmp 0x40df2e
mov edx, dword [ebp - 0x10]
mov ax, word [ebp + edx*2 - 0x620]
mov word [ebp - 0xc], ax
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov word [ebp + edx*2 - 0x620], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x21c]
lea edx, [ebp + ecx*2 - 0x620]
push edx
call fcn.0040d680
add esp, 8
mov eax, dword [ebp - 0x10]
mov cx, word [ebp - 0xc]
mov word [ebp + eax*2 - 0x620], cx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x628], eax
cmp dword [ebp - 0x628], 0
jne 0x40df1b
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], 0
jmp 0x40df2e
mov ecx, dword [ebp - 0x628]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax]
mov dword [ecx + 4], edx
cmp dword [ebp - 4], 0
je 0x40dfd4
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x10], ecx
mov edx, 1
test edx, edx
je 0x40df82
mov eax, dword [ebp - 0x10]
movzx ecx, word [ebp + eax*2 - 0x620]
cmp ecx, 0x2f
je 0x40df75
mov edx, dword [ebp - 0x10]
movzx eax, word [ebp + edx*2 - 0x620]
test eax, eax
jne 0x40df77
jmp 0x40df82
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x40df4d
mov edx, dword [ebp - 0x21c]
cmp edx, dword [ebp - 0x10]
jne 0x40df99
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 0x50
jmp 0x40dfd2
mov ecx, dword [ebp - 0x10]
mov dx, word [ebp + ecx*2 - 0x620]
mov word [ebp - 0xc], dx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov word [ebp + ecx*2 - 0x620], ax
mov edx, dword [ebp + 0xc]
add edx, 8
push edx
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp + eax*2 - 0x620]
push ecx
call fcn.0040d610
add esp, 8
jmp 0x40dfde
mov edx, dword [ebp + 0xc]
mov dword [edx + 8], 0x50
mov eax, dword [ebp - 0x10]
movzx ecx, word [ebp + eax*2 - 0x620]
test ecx, ecx
jne 0x40e006
mov edx, dword [ebp + 0xc]
add edx, 0x20c
push edx
push 0x4151f8
call fcn.0040d5d0
add esp, 8
jmp 0x40e022
mov eax, dword [ebp + 0xc]
add eax, 0x20c
push eax
mov ecx, dword [ebp - 0x10]
lea edx, [ebp + ecx*2 - 0x620]
push edx
call fcn.0040d5d0
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040142b
mov esp, ebp
pop ebp
ret