Function at 0x404a10
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a82ae
mov eax, dword fs:[0]
push eax
mov eax, 0x13dc
call fcn.004894c0
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 0x20], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x404a60
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004885d6
add esp, 4
test eax, eax
jne 0x404a67
xor eax, eax
jmp 0x40553d
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x22c]
push eax
call fcn.00488f19
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x234], 0
push 2
push 0x4b01d8
lea ecx, [ebp - 0x22c]
push ecx
call fcn.00489485
add esp, 0xc
test eax, eax
jne 0x404b27
lea edx, [ebp - 0x62c]
push edx
push 0x4afba3
push 0x3e8
lea eax, [ebp - 0x624]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call fcn.004885d6
add esp, 4
add eax, 1
push eax
lea edx, [ebp - 0x22c]
push edx
push 0
push 0
call dword [0x4e571c]
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x624]
push ecx
call fcn.00463da0
add esp, 8
mov dword [ebp - 0x628], eax
cmp dword [ebp - 0x628], 0
je 0x404b22
mov dword [ebp - 0x18], 3
jmp 0x405166
push 5
push str.http:
lea edx, [ebp - 0x22c]
push edx
call fcn.00489485
add esp, 0xc
test eax, eax
jne 0x404b60
lea eax, [ebp - 0x22c]
push eax
call fcn.0041f9b0
add esp, 4
test eax, eax
je 0x404b5b
mov dword [ebp - 0x18], 6
jmp 0x405166
push 6
push str.https:
lea ecx, [ebp - 0x22c]
push ecx
call fcn.00489485
add esp, 0xc
test eax, eax
jne 0x404b99
lea edx, [ebp - 0x22c]
push edx
call fcn.0041f9b0
add esp, 4
test eax, eax
je 0x404b94
mov dword [ebp - 0x18], 7
jmp 0x405166
lea eax, [ebp - 0x634]
push eax
call fcn.00460680
add esp, 4
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x638], 0
jmp 0x404bc9
mov ecx, dword [ebp - 0x638]
add ecx, 1
mov dword [ebp - 0x638], ecx
mov edx, dword [ebp - 0x638]
cmp edx, dword [ebp - 0x630]
jge 0x404c60
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x638]
shl ecx, 4
mov edx, dword [ebp - 0x634]
mov eax, dword [edx + ecx]
push eax
call fcn.004885a4
add esp, 8
test eax, eax
jne 0x404c5b
mov ecx, dword [ebp - 0x638]
shl ecx, 4
mov edx, dword [ebp - 0x634]
cmp dword [edx + ecx + 0xc], 0
jne 0x404c20
mov dword [ebp - 0x18], 8
jmp 0x404c59
push 0x53a9d8
lea eax, [ebp - 0x844]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call fcn.00460950
add esp, 0xc
test eax, eax
je 0x404c59
lea edx, [ebp - 0x844]
push edx
lea eax, [ebp - 0x22c]
push eax
call fcn.00488f19
add esp, 8
mov byte [ebp - 0x11], 1
jmp 0x404c60
jmp 0x404bba
mov ecx, dword [ebp - 0x634]
push ecx
call fcn.00460800
add esp, 4
cmp dword [ebp - 0x18], 0
jne 0x405166
mov dword [ebp - 0x95c], 0
push 0x110
push 0
lea edx, [ebp - 0x958]
push edx
call fcn.004886d0
add esp, 0xc
mov dword [ebp - 0x95c], 0x114
lea eax, [ebp - 0x95c]
push eax
call dword [0x4e56d8]
mov ecx, dword [ebp - 0x958]
shl ecx, 8
add ecx, dword [ebp - 0x954]
cmp ecx, 0x501
jb 0x40505f
mov word [ebp - 0xb6c], 0
push 0x1fe
push 0
lea edx, [ebp - 0xb6a]
push edx
call fcn.004886d0
add esp, 0xc
mov dword [ebp - 0xb74], 0x10
mov dword [ebp - 0xb98], 0x1c
push 0x4b01f0
call dword [0x4e56fc]
mov dword [ebp - 0x964], eax
cmp dword [ebp - 0x964], 0xffffffff
je 0x404d70
push 0x4b0208
mov eax, dword [ebp - 0x964]
push eax
call dword [0x4e56bc]
mov dword [ebp - 0x968], eax
push 0x4b00bc
mov ecx, dword [ebp - 0x964]
push ecx
call dword [0x4e56bc]
mov dword [ebp - 0xb70], eax
cmp dword [ebp - 0x968], 0
je 0x404d5a
cmp dword [ebp - 0xb70], 0
jne 0x404d6e
mov edx, dword [ebp - 0x964]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x40553d
jmp 0x404d77
xor eax, eax
jmp 0x40553d
lea eax, [ebp - 0xb74]
push eax
lea ecx, [ebp - 0xb90]
push ecx
push 0
push 2
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.WS2_32.dll_WSAStringToAddressW]
mov dword [ebp - 0xb94], eax
cmp dword [ebp - 0xb94], 0
je 0x404fd4
cmp dword [ebp - 0x958], 6
jb 0x404dea
lea eax, [ebp - 0xb98]
push eax
lea ecx, [ebp - 0xb90]
push ecx
push 0
push 0x17
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.WS2_32.dll_WSAStringToAddressW]
mov dword [ebp - 0xb94], eax
cmp dword [ebp - 0xb94], 0
jne 0x404dea
mov dword [ebp - 0x234], 1
cmp dword [ebp - 0xb94], 0
je 0x404fd4
mov dword [ebp - 0xbbc], 0
xor eax, eax
mov dword [ebp - 0xbb8], eax
mov dword [ebp - 0xbb4], eax
mov dword [ebp - 0xbb0], eax
mov dword [ebp - 0xbac], eax
mov dword [ebp - 0xba8], eax
mov dword [ebp - 0xba4], eax
mov dword [ebp - 0xba0], eax
mov dword [ebp - 0xbb8], 2
mov dword [ebp - 0xbb4], 1
mov byte [ebp - 0xcbc], 0
push 0xff
push 0
lea ecx, [ebp - 0xcbb]
push ecx
call fcn.004886d0
add esp, 0xc
lea edx, [ebp - 0xcc0]
push edx
push 0x4afbc6
push pe_nt_image_headers32
lea eax, [ebp - 0xcbc]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call fcn.004885d6
add esp, 4
add eax, 1
push eax
lea edx, [ebp - 0x22c]
push edx
push 0
push 0
call dword [0x4e571c]
lea eax, [ebp - 0xb9c]
push eax
lea ecx, [ebp - 0xbbc]
push ecx
push 0
lea edx, [ebp - 0xcbc]
push edx
call dword [ebp - 0xb70]
mov dword [ebp - 0xb94], eax
cmp dword [ebp - 0xb94], 0
jne 0x404ef3
push 0x10
mov eax, dword [ebp - 0xb9c]
mov ecx, dword [eax + 0x18]
push ecx
lea edx, [ebp - 0xb90]
push edx
call fcn.00489120
add esp, 0xc
mov eax, dword [ebp - 0xb9c]
push eax
call dword [ebp - 0x968]
jmp 0x404fd4
cmp dword [ebp - 0x958], 6
jb 0x404fd4
push 0x20
push 0
lea ecx, [ebp - 0xbbc]
push ecx
call fcn.004886d0
add esp, 0xc
mov dword [ebp - 0xbb8], 0x17
mov dword [ebp - 0xbb4], 1
mov byte [ebp - 0xdc4], 0
push 0xff
push 0
lea edx, [ebp - 0xdc3]
push edx
call fcn.004886d0
add esp, 0xc
lea eax, [ebp - 0xcc0]
push eax
push 0x4afbc7
push pe_nt_image_headers32
lea ecx, [ebp - 0xdc4]
push ecx
lea edx, [ebp - 0x22c]
push edx
call fcn.004885d6
add esp, 4
add eax, 1
push eax
lea eax, [ebp - 0x22c]
push eax
push 0
push 0
call dword [0x4e571c]
lea ecx, [ebp - 0xb9c]
push ecx
lea edx, [ebp - 0xbbc]
push edx
push 0
lea eax, [ebp - 0xdc4]
push eax
call dword [ebp - 0xb70]
mov dword [ebp - 0xb94], eax
cmp dword [ebp - 0xb94], 0
jne 0x404fd4
push 0x1c
mov ecx, dword [ebp - 0xb9c]
mov edx, dword [ecx + 0x18]
push edx
lea eax, [ebp - 0xb90]
push eax
call fcn.00489120
add esp, 0xc
mov ecx, dword [ebp - 0xb9c]
push ecx
call dword [ebp - 0x968]
mov edx, dword [ebp - 0x964]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movsx eax, word [ebp - 0xb90]
cmp eax, 2
je 0x404ff9
movsx ecx, word [ebp - 0xb90]
cmp ecx, 0x17
jne 0x40505a
sub esp, 0x1c
mov ecx, 7
lea esi, [ebp - 0xb90]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x10]
push edx
call fcn.00415630
add esp, 0x20
mov dword [ebp - 0x960], eax
cmp dword [ebp - 0x10], 0
jne 0x40502c
mov dword [ebp - 0x18], 4
jmp 0x40505a
mov eax, dword [ebp - 0x10]
add eax, 0x9c
push eax
mov ecx, dword [ebp + 8]
call fcn.0040f9e0
mov ecx, eax
call fcn.0041c500
test eax, eax
je 0x405051
mov dword [ebp - 0x18], 4
jmp 0x40505a
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0xfffffffe
jmp 0x405166
lea edx, [ebp - 0x22c]
push edx
call fcn.00404560
add esp, 4
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x405088
cmp dword [ebp - 0x238], 0xffffffff
je 0x405088
jmp 0x4050fd
lea eax, [ebp - 0x11b0]
push eax
push 0x4afbce
push 0x3e8
lea ecx, [ebp - 0x11ac]
push ecx
lea edx, [ebp - 0x22c]
push edx
call fcn.004885d6
add esp, 4
add eax, 1
push eax
lea eax, [ebp - 0x22c]
push eax
push 0
push 0
call dword [0x4e571c]
lea ecx, [ebp - 0x11ac]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x11b4], eax
cmp dword [ebp - 0x11b4], 0
je 0x4050fd
push 4
mov edx, dword [ebp - 0x11b4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x238]
push edx
call fcn.00489120
add esp, 0xc
cmp dword [ebp - 0x238], 0
je 0x405166
cmp dword [ebp - 0x238], 0xffffffff
je 0x405166
mov eax, dword [ebp - 0x238]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00415390
add esp, 8
mov dword [ebp - 0x960], eax
cmp dword [ebp - 0x10], 0
jne 0x405137
mov dword [ebp - 0x18], 4
jmp 0x405166
mov edx, dword [ebp - 0x10]
add edx, 0x9c
push edx
mov ecx, dword [ebp + 8]
call fcn.0040f9e0
mov ecx, eax
call fcn.0041c500
test eax, eax
je 0x40515d
mov dword [ebp - 0x18], 4
jmp 0x405166
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xfffffffe
cmp dword [ebp - 0x18], 0
jne 0x405173
xor eax, eax
jmp 0x40553d
push 0x178
call fcn.0047642c
add esp, 4
mov dword [ebp - 0x13e0], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x13e0], 0
je 0x4051a9
mov ecx, dword [ebp - 0x13e0]
call fcn.0040f810
mov dword [ebp - 0x13e4], eax
jmp 0x4051b3
mov dword [ebp - 0x13e4], 0
mov ecx, dword [ebp - 0x13e4]
mov dword [ebp - 0x13dc], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x13dc]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040f700
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0xbc], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x230]
mov dword [edx + 0xc4], eax
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ebp - 0x11]
mov byte [ecx + 0xcc], dl
cmp dword [ebp - 0x18], 4
je 0x40521e
cmp dword [ebp - 0x18], 6
je 0x40521e
cmp dword [ebp - 0x18], 7
jne 0x4054dd
cmp dword [ebp - 0x10], 0
je 0x4053df
mov eax, dword [ebp - 0x10]
add eax, 0x22c
push eax
call fcn.0040f700
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0xd0], eax
mov edx, dword [ebp - 0x10]
add edx, 0x3bc
push edx
call fcn.0040f700
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0xd4], eax
mov edx, dword [ebp - 0x10]
add edx, 0x7a4
push edx
call fcn.0040f700
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0xd8], eax
movzx edx, byte [0x539bb6]
test edx, edx
je 0x405299
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xb8c], 0
setne cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + 0xe0], cl
push 0x18
mov ecx, 0x5376f0
call fcn.0040fa10
test eax, eax
je 0x4052e5
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xb94], 0
je 0x4052c1
mov dword [ebp - 0x13e8], 2
jmp 0x4052d6
mov ecx, dword [ebp - 0x10]
xor edx, edx
cmp dword [ecx + 0xb90], 0
setne dl
mov dword [ebp - 0x13e8], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x13e8]
mov dword [eax + 0xdc], ecx
mov edx, dword [ebp - 0x10]
movsx eax, word [edx]
cmp eax, 2
jne 0x40531a
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
mov dword [ecx + 0xe4], eax
push 0x10
push 0
mov ecx, dword [ebp - 0x1c]
add ecx, 0xe8
push ecx
call fcn.004886d0
add esp, 0xc
jmp 0x4053dd
mov edx, dword [ebp - 0x10]
movsx eax, word [edx]
cmp eax, 0x17
jne 0x4053dd
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0xe4], 0
mov edx, dword [ebp - 0x10]
add edx, 8
mov eax, dword [ebp - 0x1c]
add eax, 0xe8
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
cmp dword [ebp - 0x234], 0
je 0x4053dd
mov dword [ebp - 0x13d8], pe_nt_image_headers32
mov esi, dword [ebp - 0x10]
mov ecx, 7
lea edi, [ebp - 0x13d4]
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x13d2], 0
lea eax, [ebp - 0x13d8]
push eax
lea ecx, [ebp - 0x13b4]
push ecx
push 0
push 0x1c
lea edx, [ebp - 0x13d4]
push edx
call dword [sym.imp.WS2_32.dll_WSAAddressToStringW]
mov dword [ebp - 0x13b8], eax
cmp dword [ebp - 0x13b8], 0
jne 0x4053dd
mov eax, dword [ebp - 0x1c]
add eax, 0xbc
push eax
call fcn.0040f7e0
add esp, 4
lea ecx, [ebp - 0x13b4]
push ecx
call fcn.0040f700
add esp, 4
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0xbc], eax
jmp 0x405418
push 0
call fcn.0040f700
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0xd0], eax
push 0
call fcn.0040f700
add esp, 4
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0xd4], eax
push 0
call fcn.0040f700
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0xd8], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xd0]
push eax
call fcn.004885d6
add esp, 4
test eax, eax
je 0x40547c
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xd0]
push edx
call fcn.0040f700
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x10], eax
push 0x1f
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xd0]
push eax
call fcn.00405560
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x14], eax
push 0xf
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xd0]
push eax
call fcn.00405560
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x18], eax
jmp 0x4054d0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xd4]
push eax
call fcn.004885d6
add esp, 4
test eax, eax
je 0x4054d0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xd4]
push edx
call fcn.0040f700
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x10], eax
movzx edx, byte [0x539bcf]
cmp edx, 1
jne 0x4054d0
push 0x1f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xd4]
push ecx
call fcn.00405560
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0xc8], 1
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x10], 0
jne 0x405503
mov ecx, dword [ebp + 8]
call fcn.0040f9e0
mov edx, dword [eax + 0x7b8]
push edx
call fcn.0040f700
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x405520
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00488f35
add esp, 4
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
jmp 0x40553a
cmp dword [ebp - 0x18], 4
jne 0x405531
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
jmp 0x40553a
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00488550
mov esp, ebp
pop ebp
ret