Function at 0x406740
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e7d8
mov eax, dword fs:[0]
push eax
mov eax, 0x1b7c
call fcn.005380d0
mov eax, dword [0x5afec0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1b0c], 0
mov dword [ebp - 0x1b10], 0
mov dword [ebp - 0x1b04], 0
mov dword [ebp - 0x1b1c], 0
mov dword [ebp - 0x1b24], 0
mov dword [ebp - 0x1b18], 0
mov dword [ebp - 0x1b84], 0xa
mov dword [ebp - 0x1b78], 0
mov dword [ebp - 0x1b80], 0
mov dword [ebp - 0x1b88], 0
mov byte [ebp - 0x290], 0
push 0x7f
push 0
lea eax, [ebp - 0x28f]
push eax
call fcn.005370a0
add esp, 0xc
mov dword [ebp - 0x1b7c], 0x80
mov dword [ebp - 0x1b08], 0
mov dword [ebp - 0x1b74], 0
mov dword [ebp - 0x1b14], 4
mov byte [ebp - 0x210], 0
push 0xff
push 0
lea ecx, [ebp - 0x20f]
push ecx
call fcn.005370a0
add esp, 0xc
mov byte [ebp - 0x90], 0
push 0x7f
push 0
lea edx, [ebp - 0x8f]
push edx
call fcn.005370a0
add esp, 0xc
mov byte [ebp - 0x110], 0
push 0x7f
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.005370a0
add esp, 0xc
mov byte [ebp - 0x12d8], 0
push 0x823
push 0
lea ecx, [ebp - 0x12d7]
push ecx
call fcn.005370a0
add esp, 0xc
mov byte [ebp - 0xab4], 0
push 0x823
push 0
lea edx, [ebp - 0xab3]
push edx
call fcn.005370a0
add esp, 0xc
mov dword [ebp - 0x1b70], 0
push 0x38
push 0
lea eax, [ebp - 0x1b6c]
push eax
call fcn.005370a0
add esp, 0xc
mov dword [ebp - 0x1b70], 0x3c
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x1b60], ecx
mov dword [ebp - 0x1b5c], 0x100
lea edx, [ebp - 0x90]
mov dword [ebp - 0x1b54], edx
mov dword [ebp - 0x1b50], 0x80
lea eax, [ebp - 0x110]
mov dword [ebp - 0x1b4c], eax
mov dword [ebp - 0x1b48], 0x80
lea ecx, [ebp - 0x12d8]
mov dword [ebp - 0x1b44], ecx
mov dword [ebp - 0x1b40], 0x824
lea edx, [ebp - 0x1b70]
push edx
push 0
push 0
lea ecx, [ebp + 8]
call fcn.004086a0
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov dword [ebp - 0x1b00], eax
cmp dword [ebp - 0x1b00], 0
je 0x406964
cmp dword [ebp - 0x1b64], 3
jne 0x406964
mov dword [ebp - 0x1b20], 1
jmp 0x40696e
mov dword [ebp - 0x1b20], 0
mov eax, dword [ebp - 0x1b20]
mov dword [ebp - 0x1b00], eax
cmp dword [ebp - 0x1b00], 0
jne 0x406988
jmp 0x406ba9
push 0
push 0
push 0
push 0
push str.down
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x1b0c], eax
cmp dword [ebp - 0x1b0c], 0
jne 0x4069b9
mov dword [ebp - 0x1b00], 0
jmp 0x406ba9
push 0
push 0
push 3
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x90]
push edx
movzx eax, word [ebp - 0x1b58]
push eax
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp - 0x1b0c]
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x1b10], eax
cmp dword [ebp - 0x1b10], 0
jne 0x406a07
mov dword [ebp - 0x1b00], 0
jmp 0x406ba9
cmp dword [ebp - 0x1b40], 0
je 0x406a28
mov eax, dword [ebp - 0x1b44]
push eax
lea ecx, [ebp - 0xab4]
push ecx
call fcn.00537e10
add esp, 8
jmp 0x406a3c
push 0x55ff44
lea edx, [ebp - 0xab4]
push edx
call fcn.00537e10
add esp, 8
push 0
push 0x80200000
push 0
push 0x55fdd9
push str.HTTP_1.1
lea eax, [ebp - 0xab4]
push eax
push str.HEAD
mov ecx, dword [ebp - 0x1b10]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x1b04], eax
mov dword [ebp - 0x1b00], 0
mov dword [ebp - 0x1b08], 0
mov dword [ebp - 0x1b14], 4
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x1b04]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x1b00], eax
cmp dword [ebp - 0x1b00], 0
jne 0x406ac4
mov dword [ebp - 0x1b00], 0
jmp 0x406ba9
mov dword [ebp - 0x1b08], 0
mov dword [ebp - 0x1b14], 4
push 0
lea eax, [ebp - 0x1b14]
push eax
lea ecx, [ebp - 0x1b08]
push ecx
push 0x20000013
mov edx, dword [ebp - 0x1b04]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [ebp - 0x1b00], eax
cmp dword [ebp - 0x1b00], 0
je 0x406ba9
cmp dword [ebp - 0x1b08], 0xc8
jne 0x406b2a
mov dword [ebp - 0x1b00], 0
jmp 0x406ba9
cmp dword [ebp - 0x1b08], 0x12e
jne 0x406b9f
mov byte [ebp - 0x1afc], 0
push 0x823
push 0
lea eax, [ebp - 0x1afb]
push eax
call fcn.005370a0
add esp, 0xc
mov dword [ebp - 0x1b30], 0x824
push 0
lea ecx, [ebp - 0x1b30]
push ecx
lea edx, [ebp - 0x1afc]
push edx
push 0x21
mov eax, dword [ebp - 0x1b04]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [ebp - 0x1b34], eax
lea ecx, [ebp - 0x1afc]
push ecx
mov ecx, dword [ebp + 0x20]
call fcn.00405410
jmp 0x406ba9
mov dword [ebp - 0x1b00], 0
cmp dword [ebp - 0x1b24], 0xffffffff
je 0x406bbf
mov edx, dword [ebp - 0x1b24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1b18], 0
je 0x406be3
mov eax, dword [ebp - 0x1b18]
mov dword [ebp - 0x1b2c], eax
mov ecx, dword [ebp - 0x1b2c]
push ecx
call fcn.0040fff1
add esp, 4
cmp dword [ebp - 0x1b1c], 0
je 0x406bf9
mov edx, dword [ebp - 0x1b1c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x1b04], 0
je 0x406c0f
mov eax, dword [ebp - 0x1b04]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x1b10], 0
je 0x406c25
mov ecx, dword [ebp - 0x1b10]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x1b0c], 0
je 0x406c3b
mov edx, dword [ebp - 0x1b0c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x1b00]
mov dword [ebp - 0x1b28], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403300
mov eax, dword [ebp - 0x1b28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00535234
mov esp, ebp
pop ebp
ret