Function at 0x408520
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x704]
sub esp, 0x704
push 0xffffffffffffffff
push 0x417058
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x42ac1c]
xor eax, ebp
mov dword [ebp + 0x700], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x70c]
mov esi, dword [ebp + 0x720]
mov dword [ebp - 0x40], edx
mov edx, dword [ebp + 0x71c]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x714]
mov dword [ebp - 0x94], ecx
mov ecx, dword [ebp + 0x718]
xor ebx, ebx
push 0x7f
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x728]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp + 0x730]
lea edx, [ebp + 0x681]
push ebx
xor edi, edi
push edx
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x8c], 4
mov byte [ebp + 0x680], bl
call fcn.0040a210
push 0x7f
lea eax, [ebp + 0x601]
push ebx
push eax
mov byte [ebp + 0x600], bl
call fcn.0040a210
add esp, 0x18
mov dword [ebp - 0x1c], ebx
call dword [0x42abfc]
push 0x80
mov dword [ebp - 0xa4], eax
call fcn.0040b0d3
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 0x80
lea ecx, [ebp - 0x7c]
push ecx
mov byte [eax + 1], bl
mov byte [eax], bl
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x6c]
push ebx
push edx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x74], ebx
call fcn.004084d0
add esp, 0x14
cmp esi, ebx
je 0x40864a
mov eax, dword [esi]
cmp eax, ebx
jne 0x408655
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi], eax
jmp 0x408655
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x408d99
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetOpenA
mov ecx, eax
push ecx
call esi
cmp eax, ebx
mov dword [ebp - 0x54], eax
je 0x408d87
mov edx, dword [ebp - 0x10]
push str.InternetErrorDlg
push edx
call esi
cmp eax, ebx
mov dword [ebp - 0xa0], eax
je 0x408d87
mov eax, dword [ebp - 0x10]
push str.HttpQueryInfoA
push eax
call esi
cmp eax, ebx
mov dword [ebp - 0x44], eax
je 0x408d87
mov ecx, dword [ebp - 0x10]
push str.InternetConnectA
push ecx
call esi
cmp eax, ebx
mov dword [ebp - 0x84], eax
je 0x408d87
mov edx, dword [ebp - 0x10]
push str.HttpOpenRequestA
push edx
call esi
cmp eax, ebx
mov dword [ebp - 0x9c], eax
je 0x408d87
mov eax, dword [ebp - 0x10]
push str.HttpAddRequestHeadersA
push eax
call esi
cmp eax, ebx
mov dword [ebp - 0x60], eax
je 0x408d87
mov ecx, dword [ebp - 0x10]
push str.HttpSendRequestExA
push ecx
call esi
cmp eax, ebx
mov dword [ebp - 0x68], eax
je 0x408d87
mov edx, dword [ebp - 0x10]
push str.InternetWriteFile
push edx
call esi
cmp eax, ebx
mov dword [ebp - 0x88], eax
je 0x408d87
mov eax, dword [ebp - 0x10]
push str.HttpEndRequestA
push eax
call esi
cmp eax, ebx
mov dword [ebp - 0x80], eax
je 0x408d87
mov ecx, dword [ebp - 0x10]
push str.InternetReadFile
push ecx
call esi
cmp eax, ebx
mov dword [ebp - 0x48], eax
je 0x408d87
mov edx, dword [ebp - 0x10]
push str.InternetCloseHandle
push edx
call esi
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x408d87
mov eax, dword [ebp - 0x10]
push str.InternetQueryOptionA
push eax
call esi
cmp eax, ebx
mov dword [ebp - 0x90], eax
je 0x408d87
mov ecx, dword [ebp - 0x10]
push str.InternetSetOptionA
push ecx
call esi
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x408d87
lea edx, [ebp]
push edx
call fcn.004083a0
xor eax, eax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x40]
add esp, 4
cmp eax, ebx
mov dword [ebp - 0xd4], 0x28
je 0x4087f8
mov eax, dword [eax + 8]
mov dword [ebp - 0xb8], eax
jmp 0x4087fe
mov dword [ebp - 0xb8], ebx
mov esi, dword [ebp - 0x5c]
mov eax, esi
neg eax
sbb eax, eax
and eax, 3
xor ecx, ecx
cmp eax, 3
setne cl
push ebx
push ebx
lea edx, [ebp]
mov dword [ebp - 0x28], eax
sub ecx, 1
and ecx, esi
push ecx
push eax
push edx
call dword [ebp - 0x54]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x24], esi
je 0x408d87
mov eax, dword [ebp + 0x710]
mov ecx, dword [ebp - 0xa8]
push ebx
push ebx
push 3
push ebx
push ebx
push eax
push ecx
push esi
call dword [ebp - 0x84]
cmp eax, ebx
mov dword [ebp - 0x2c], eax
je 0x408d83
cmp dword [ebp - 0x40], ebx
mov eax, str.POST
jne 0x408867
mov eax, 0x419b44
mov ecx, dword [ebp - 0x94]
xor edx, edx
cmp dword [ebp + 0x710], 0x1bb
push ebx
setne dl
sub edx, 1
and edx, 0x800000
or edx, 0x4401000
push edx
mov edx, dword [ebp - 0x2c]
push ebx
push ebx
push str.HTTP_1.0
push ecx
push eax
push edx
call dword [ebp - 0x9c]
mov esi, eax
cmp esi, ebx
je 0x408d79
cmp dword [ebp + 0x724], ebx
je 0x4088fd
push 4
lea eax, [ebp + 0x724]
push eax
push 2
push esi
call dword [ebp - 0x20]
push 4
lea ecx, [ebp + 0x724]
push ecx
push 5
push esi
call dword [ebp - 0x20]
push 4
lea edx, [ebp + 0x724]
push edx
push 6
push esi
call dword [ebp - 0x20]
push 4
lea eax, [ebp + 0x724]
push eax
push 6
push esi
call dword [ebp - 0x20]
push 4
lea ecx, [ebp + 0x724]
push ecx
push 5
push esi
call dword [ebp - 0x20]
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x408920
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x408907
push 0xa0000000
sub eax, edx
mov edx, dword [ebp - 0x58]
push eax
push edx
push esi
call dword [ebp - 0x60]
cmp dword [ebp - 0x34], ebx
je 0x4089f1
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x408941
xor eax, eax
jmp 0x408962
lea edi, [eax + eax]
mov eax, edi
call fcn.0040b1a0
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0x34]
mov eax, esp
push ecx
push edi
push edx
push eax
call fcn.004046e0
mov edi, dword [ebp - 0x38]
lea edx, [ebp + 0x680]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
cmp cl, bl
jne 0x408968
lea eax, [ebp + 0x680]
push 0x3a
push eax
call fcn.0040a610
add esp, 8
cmp eax, ebx
je 0x4089f1
mov byte [eax], bl
add eax, 1
lea edx, [ebp + 0x600]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x408998
lea eax, [ebp + 0x680]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4089b0
sub eax, edx
add eax, 1
push eax
lea ecx, [ebp + 0x680]
push ecx
push 0x2b
push esi
call dword [ebp - 0x20]
lea eax, [ebp + 0x600]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4089d5
sub eax, edx
add eax, 1
push eax
lea edx, [ebp + 0x600]
push edx
push 0x2c
push esi
call dword [ebp - 0x20]
push 0xa0000000
push 0xe
push str.Accept:____r_n
push esi
call dword [ebp - 0x60]
test eax, eax
je case.0x408a45.12003
lea esp, [esp]
push ebx
push ebx
push ebx
lea eax, [ebp - 0xd4]
push eax
push esi
call dword [ebp - 0x68]
test eax, eax
jne 0x408a9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [edi - 0x2ee2]
cmp eax, 0x96
mov dword [ebp - 0x38], edi
ja case.0x408a45.12003
movzx ecx, byte [eax + 0x408e30]
jmp dword [ecx*4 + 0x408e24]
lea edx, [ebp - 0xac]
push edx
lea eax, [ebp - 0x50]
push eax
push 0x1f
push esi
mov dword [ebp - 0xac], 4
call dword [ebp - 0x90]
test eax, eax
je case.0x408a45.12003
or dword [ebp - 0x50], 0x3180
push 4
lea ecx, [ebp - 0x50]
push ecx
push 0x1f
push esi
call dword [ebp - 0x20]
test eax, eax
je case.0x408a45.12003
push ebx
push ebx
push ebx
lea edx, [ebp - 0xd4]
push edx
push esi
call dword [ebp - 0x68]
test eax, eax
je 0x408a22
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x40], ebx
mov edi, eax
mov dword [ebp - 0x38], edi
je 0x408add
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx]
lea edx, [ebp - 0xd8]
push edx
push eax
push ecx
push esi
call dword [ebp - 0x88]
test eax, eax
jne 0x408add
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x38], eax
push ebx
push ebx
push ebx
push esi
call dword [ebp - 0x80]
test eax, eax
jne 0x408af3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x38], edi
cmp edi, 0x2f78
je 0x408cc0
cmp edi, 0x2eff
je 0x408cc0
cmp edi, 0x2ee2
je 0x408cc0
push ebx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
push 0x20000013
push esi
xor edi, edi
call dword [ebp - 0x44]
test eax, eax
jne 0x408b3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp - 0x3c]
sub eax, 0xc8
je 0x408de5
sub eax, 0xc9
je 0x408b58
sub eax, 6
jne 0x408d2c
cmp dword [ebp - 0x1c], 1
mov dword [ebp - 0x4c], 0x200
mov dword [ebp - 0x70], ebx
jne 0x408b6f
mov dword [ebp - 0x1c], 2
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 0x400]
push ecx
push 0x29
push esi
call dword [ebp - 0x44]
test eax, eax
je 0x408c22
lea esp, [esp]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x408bbc
cmp dword [ebp - 0x34], ebx
jne 0x408bf5
push 9
lea edx, [ebp + 0x400]
push edx
push str.NEGOTIATE
call fcn.00415876
add esp, 0xc
test eax, eax
je 0x408c79
jmp 0x408bf5
cmp eax, 2
jne 0x408bf5
push 8
lea eax, [ebp + 0x400]
push eax
push str.NTLM_TlR
call fcn.00415876
add esp, 0xc
test eax, eax
je 0x408c1b
push 0xd
lea ecx, [ebp + 0x400]
push ecx
push str.NEGOTIATE_TlR
call fcn.00415876
add esp, 0xc
test eax, eax
je 0x408c1b
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 0x400]
push ecx
push 0x29
push esi
mov dword [ebp - 0x4c], 0x200
call dword [ebp - 0x44]
test eax, eax
jne 0x408b90
jmp 0x408c22
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x34], ebx
je 0x408c3d
cmp dword [ebp - 0x1c], 2
je case.0x408a45.12003
mov dword [ebp - 0x1c], 1
jmp 0x408a10
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x408c4d
cmp eax, 2
jne 0x408a10
cmp byte [ebp + 0x72c], bl
je case.0x408a45.12003
push ebx
push 7
push 0x2eee
push esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [ebp - 0xa0]
mov edi, eax
cmp edi, ebx
je case.0x408a45.12003
mov dword [ebp - 0x1c], 1
jmp 0x408a10
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x408cad
cmp eax, 3
jne case.0x408a45.12003
push esi
call dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x18]
push edx
call esi
mov eax, dword [ebp - 0x24]
push eax
call esi
mov dword [ebp - 0x28], ebx
jmp 0x408d02
push esi
call dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x18]
push ecx
call esi
mov edx, dword [ebp - 0x24]
push edx
jmp 0x408cf9
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x408ce8
cmp eax, 3
jne case.0x408a45.12003
push esi
call dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x18]
push eax
call esi
mov ecx, dword [ebp - 0x24]
push ecx
call esi
mov dword [ebp - 0x28], ebx
jmp 0x408d02
push esi
call dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x18]
push edx
call esi
mov eax, dword [ebp - 0x24]
push eax
call esi
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x28]
xor ecx, ecx
cmp eax, 3
setne cl
push ebx
push ebx
lea edx, [ebp]
sub ecx, 1
and ecx, dword [ebp - 0x5c]
push ecx
push eax
push edx
call dword [ebp - 0x54]
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x408d87
mov esi, eax
jmp 0x408832
lea eax, [ebp - 0x30]
push eax
push 0x200
lea ecx, [ebp + 0x200]
push ecx
push esi
call dword [ebp - 0x48]
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x408d72
push eax
lea edx, [ebp + 0x200]
push edx
lea ecx, [ebp - 0x7c]
call fcn.00404730
lea eax, [ebp - 0x30]
push eax
push 0x200
lea ecx, [ebp + 0x200]
push ecx
push esi
call dword [ebp - 0x48]
mov eax, dword [ebp - 0x30]
cmp eax, ebx
jne 0x408d47
mov byte [ebp - 0x11], bl
push esi
call dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
push edx
call dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
push esi
call dword [ebp - 0x18]
cmp dword [ebp - 0x98], ebx
jne 0x408d99
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x7c]
push ecx
push edi
push edx
push eax
call fcn.004084d0
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.0040aff6
mov al, byte [ebp - 0x11]
add esp, 0x14
lea esp, [ebp - 0xe8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x700]
xor ecx, ebp
call fcn.0040a1eb
add ebp, 0x704
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x30]
push edx
push 0x200
lea eax, [ebp + 0x200]
push eax
push esi
call dword [ebp - 0x48]
test eax, eax
je 0x408e01
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je case.0x408a45.12003
cmp dword [ebp - 0x64], ebx
je 0x408de5
push eax
lea ecx, [ebp + 0x200]
push ecx
mov ecx, dword [ebp - 0x64]
call fcn.00404730
jmp 0x408de5