Function at 0x1006a6e0
Capabilities:
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.100c8100
push 0xffffffffffffffff
push 0x100e8250
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x34], edx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x1006ab32
mov eax, edi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1006a746
sub eax, esi
sar eax, 1
je 0x1006ab32
cmp edx, ebx
je 0x1006ab32
mov eax, edx
lea esi, [eax + 2]
jmp 0x1006a770
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1006a770
sub eax, esi
sar eax, 1
je 0x1006ab32
push edx
push edi
push str.Download_File___s__to___s_
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push str.__DownLoadWebFile__
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
jne 0x1006a7da
push str.Open_Internet_session_fail__
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
push 0x1012ac78
lea eax, [ebp - 0x3c]
push eax
call fcn.100c80ad
mov dword [ebp - 0x18], 0x3e8
mov eax, dword [ebp + 0x100c]
cmp eax, ebx
je 0x1006a7f4
imul eax, eax, 0x3e8
mov dword [ebp - 0x18], eax
push 4
lea ecx, [ebp - 0x18]
push ecx
push 2
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x1006a825
mov edx, dword [ebp - 0x18]
push edx
push str.Set_connect_time_out_success_:__d
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1006a841
push str.Set_connect_time_out_fail_
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov ecx, eax
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
push 4
lea eax, [ebp - 0x18]
push eax
push 6
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x1006a86c
mov ecx, dword [ebp - 0x18]
push ecx
push str.Set_receive_time_out_success_:__d
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 8
jmp 0x1006a882
push str.Set_receive_time_out_fail_
call ebx
mov ecx, eax
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
push 0
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x1006ab1a
call ebx
push edi
push str.Open_URL__s__fail__
mov ecx, eax
mov edx, 0x10152dd8
call fcn.1003f2f0
push 0x3c
push esi
lea edx, [ebp - 0x98]
push edx
call fcn.100c7d20
mov dword [ebp - 0x58], str.text_
mov dword [ebp - 0x54], str.image_
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x14], 0x4407100
push 0x800
push esi
lea eax, [ebp + 0x800]
push eax
call fcn.100c7d20
push 0x800
push esi
lea ecx, [ebp]
push ecx
call fcn.100c7d20
add esp, 0x2c
mov dword [ebp - 0x98], 0x3c
lea edx, [ebp + 0x800]
mov dword [ebp - 0x88], edx
mov eax, 0x400
mov dword [ebp - 0x84], eax
lea ecx, [ebp]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], eax
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1006a930
sub eax, edx
sar eax, 1
lea edx, [ebp - 0x98]
push edx
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x1006a97d
call ebx
mov esi, eax
push str.CrackUrl_fail__
mov ecx, esi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x38], esi
push 0x1012ac78
lea eax, [ebp - 0x38]
push eax
call fcn.100c80ad
push 0
push 0
push 3
push 0x10108140
push 0x10108140
push 0x50
lea ecx, [ebp + 0x800]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jne 0x1006a9d2
call ebx
mov esi, eax
push str.InternetConnect_fail__
mov ecx, esi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x48], esi
push 0x1012ac78
lea eax, [ebp - 0x48]
push eax
call fcn.100c80ad
push 0
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x58]
push edx
push 0
push 0
lea eax, [ebp]
push eax
push 0x10123c1c
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x1006aa22
call ebx
mov esi, eax
push str.HttpOpenRequest_fail__
mov ecx, esi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x30], esi
push 0x1012ac78
lea ecx, [ebp - 0x30]
push ecx
call fcn.100c80ad
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x1006ab1d
call ebx
push str.HttpSendRequest_fail_____1
mov ecx, eax
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 4
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x14]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
jne 0x1006aa9b
call ebx
mov esi, eax
push str.InternetQueryOption_fail__
mov ecx, esi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x40], esi
push 0x1012ac78
lea ecx, [ebp - 0x40]
push ecx
call fcn.100c80ad
or dword [ebp - 0x14], 0x3380
push 4
lea edx, [ebp - 0x14]
push edx
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x1006aade
call ebx
mov esi, eax
push str.InternetSetOption_fail__
mov ecx, esi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x4c], esi
push 0x1012ac78
lea eax, [ebp - 0x4c]
push eax
call fcn.100c80ad
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x1006ab1d
call ebx
mov esi, eax
push str.HttpSendRequest_fail_____2
mov ecx, esi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x44], esi
push 0x1012ac78
lea ecx, [ebp - 0x44]
push ecx
call fcn.100c80ad
mov edi, dword [ebp - 0x20]
push esi
mov ecx, dword [ebp - 0x34]
call fcn.1006ac10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x1006ab8a
mov eax, 0x57
jmp 0x1006abc1
mov dword [ebp - 4], 2
test esi, esi
je 0x1006aba0
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x1006aba6
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x1006abad
push edi
call esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1006abb7
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.100c59be
add ebp, 0x1004
mov esp, ebp
pop ebp
ret 4