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

Disassembly:
push 0xd4
mov eax, 0x4aea79
call fcn.0046ac08
mov dword [ebp - 0x30], ecx
push str.DownloadFileDirectly..._URL:
lea ecx, [ebp - 0x14]
call fcn.00402829
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
and dword [ebp - 4], 0
push 0
push esi
push 2
pop ecx
call fcn.00416dc0
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, dword [esi]
xor ebx, ebx
and dword [ebp - 0x58], ebx
sub eax, 0x10
push eax
call main
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x4c], esi
xor eax, eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x50], eax
xor edi, edi
mov dword [ebp - 0x54], eax
and dword [ebp - 0x8c], 0
lea eax, [ebp - 0xdc]
push 0x3c
push 0
push eax
call fcn.004830a0
xor eax, eax
add esp, 0xc
inc eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xac], eax
call fcn.00450db1
push eax
lea ecx, [ebp - 0x2c]
call main
mov byte [ebp - 4], 2
call fcn.00450db1
push eax
lea ecx, [ebp - 0x3c]
call main
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 3
push eax
push 0
push dword [esi - 0xc]
push esi
call dword [sym.imp.wininet.dll_InternetCrackUrlW]
test eax, eax
je 0x4259a4
push dword [ebp - 0xcc]
lea ecx, [ebp - 0x2c]
call main
push dword [ebp - 0xc8]
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x2c]
call main
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call main
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x90]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push dword [ebp - 0xb0]
lea ecx, [ebp - 0x3c]
call main
cmp dword [ebp - 0xd0], 3
mov dword [ebp - 0x28], 0x400200
jne 0x42524e
push str.Scheme_is_HTTP
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x48], 0x50
call fcn.00402829
push 0
push 2
lea edx, [ebp - 0x7c]
mov byte [ebp - 4], 6
pop ecx
call fcn.004174f1
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x7c]
jmp 0x425290
cmp dword [ebp - 0xd0], 4
jne 0x42593e
mov eax, 0x1bb
mov dword [ebp - 0x28], 0xc00200
push str.Scheme_is_HTTPs
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], eax
call fcn.00402829
push 0
push 2
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 7
pop ecx
call fcn.004174f1
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
xor eax, eax
push eax
push eax
push eax
push eax
push str.ARM_WinINet_Downloader
call dword [sym.imp.wininet.dll_InternetOpenW]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x425902
mov esi, dword [ebp - 0x2c]
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push ecx
push dword [ebp - 0x48]
mov dword [ebp - 0xa0], esi
push esi
push eax
call dword [sym.imp.wininet.dll_InternetConnectW]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x4258b2
mov edi, dword [ebp - 0x3c]
xor ecx, ecx
push ecx
push dword [ebp - 0x28]
mov dword [ebp - 0x9c], edi
push ecx
push ecx
push ecx
push edi
push 0x4ebb50
push eax
call dword [sym.imp.wininet.dll_HttpOpenRequestW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x425862
xor esi, esi
mov dword [ebp - 0x94], 4
and dword [ebp - 0x38], esi
mov edi, eax
mov dword [ebp - 0x40], esi
jmp 0x42531e
mov esi, dword [ebp - 0x40]
and dword [ebp - 0x34], 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.wininet.dll_HttpSendRequestW]
test eax, eax
jne 0x425452
call dword [sym.imp.kernel32.dll_GetLastError]
push str.HttpSendRequest_failed:
lea ecx, [ebp - 0x60]
mov ebx, eax
call fcn.00402829
push ebx
push 2
lea edx, [ebp - 0x60]
mov byte [ebp - 4], 0xc
pop ecx
call fcn.004174f1
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x60]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, dword [0x5163f0]
test eax, eax
je 0x4253fd
cmp dword [0x515f30], 0
jne 0x4253fd
push 0
push 6
push ebx
push edi
push dword [eax + 0x20]
call dword [sym.imp.wininet.dll_InternetErrorDlg]
push str.User_input_...
lea ecx, [ebp - 0x64]
mov esi, eax
call fcn.00402829
push esi
push 2
lea edx, [ebp - 0x64]
mov byte [ebp - 4], 0xd
pop ecx
call fcn.004174f1
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x64]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp esi, 0x2f00
je 0x42531b
test esi, esi
jne 0x425720
cmp ebx, 0x2f19
jne 0x425720
push 4
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x80
push eax
push 0x1f
push edi
call dword [sym.imp.wininet.dll_InternetSetOptionW]
jmp 0x42531b
cmp ebx, 0x2f19
jne 0x425720
push 4
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x80
push eax
push 0x1f
push edi
call dword [sym.imp.wininet.dll_InternetSetOptionW]
push str.Ignoring_error...
lea ecx, [ebp - 0x68]
call fcn.00402829
push 0
push 2
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 0xe
pop ecx
call fcn.004174f1
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x42531e
push 0
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x20000013
push edi
call dword [sym.imp.wininet.dll_HttpQueryInfoW]
test eax, eax
je 0x4257f9
push str.Status_from_Direct_Downloader
lea ecx, [ebp - 0x6c]
call fcn.00402829
mov byte [ebp - 4], 0x11
lea edx, [ebp - 0x6c]
push dword [ebp - 0x38]
push 2
pop ecx
call fcn.004174f1
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x6c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ebx, dword [ebp - 0x38]
cmp ebx, 0xc8
je 0x4257c9
cmp ebx, 0x197
je 0x4254c5
cmp ebx, 0x191
jne 0x42582d
push str.Authentication_required
lea ecx, [ebp - 0x70]
call fcn.00402829
push 0
push 2
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 0x12
pop ecx
call fcn.004174f1
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x70]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, edi
call fcn.004249e2
test eax, eax
je 0x42579c
call fcn.00450db1
push eax
lea ecx, [ebp - 0x20]
call main
mov byte [ebp - 4], 0x14
call fcn.00450db1
push eax
lea ecx, [ebp - 0x44]
call main
mov byte [ebp - 4], 0x15
cmp esi, 2
ja 0x4256c1
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x44]
push 1
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ecx + 0x3c]
call fcn.0043e579
test eax, eax
je 0x4256c1
inc esi
mov dword [ebp - 0x40], esi
call fcn.00450db1
push eax
lea ecx, [ebp - 0x18]
call main
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x44]
call fcn.0044a115
test eax, eax
je 0x425622
cmp dword [ebp - 0x38], 0x197
mov edi, dword [ebp - 0x20]
mov esi, dword [edi - 0xc]
jne 0x4255cb
cmp dword [edi - 4], 1
jle 0x425596
push esi
lea ecx, [ebp - 0x20]
call main
mov edi, dword [ebp - 0x20]
lea eax, [esi + 1]
push eax
push edi
push 0x2b
push dword [ebp - 0x24]
call dword [sym.imp.wininet.dll_InternetSetOptionW]
mov esi, dword [ebp - 0x18]
cmp dword [esi - 4], 1
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x34], eax
jle 0x4255c4
push eax
lea ecx, [ebp - 0x18]
call main
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x34]
inc eax
push eax
push esi
push 0x2c
jmp 0x425610
cmp dword [edi - 4], 1
jle 0x4255dd
push esi
lea ecx, [ebp - 0x20]
call main
mov edi, dword [ebp - 0x20]
lea eax, [esi + 1]
push eax
push edi
push 0x1c
push dword [ebp - 0x24]
call dword [sym.imp.wininet.dll_InternetSetOptionW]
mov esi, dword [ebp - 0x18]
cmp dword [esi - 4], 1
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x34], eax
jle 0x42560b
push eax
lea ecx, [ebp - 0x18]
call main
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x34]
inc eax
push eax
push esi
push 0x1d
push dword [ebp - 0x24]
call dword [sym.imp.wininet.dll_InternetSetOptionW]
mov dword [ebp - 0x34], 1
jmp 0x42565b
push str.Decryption_failed
lea ecx, [ebp - 0x74]
mov ebx, 0x1771
call fcn.00402829
push 0
push 2
lea edx, [ebp - 0x74]
mov byte [ebp - 4], 0x18
pop ecx
call fcn.004174f1
pop ecx
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x74]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
cmp dword [esi - 4], 1
mov ecx, dword [esi - 0xc]
mov dword [ebp - 0x98], ecx
jle 0x42567c
push ecx
lea ecx, [ebp - 0x18]
call main
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x98]
mov eax, esi
test ecx, ecx
je 0x42568b
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x425682
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call main
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call main
lea ecx, [esi - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, dword [ebp - 0x40]
lea ecx, [edi - 0x10]
mov edi, dword [ebp - 0x24]
mov byte [ebp - 4], 3
jmp 0x42570c
mov ecx, str.Failed_to_get_CRDs:
cmp esi, 2
mov eax, str.Limit_getting_CRDs_reached
cmovbe eax, ecx
lea ecx, [ebp - 0x78]
push eax
call fcn.00402829
push 0
push 2
lea edx, [ebp - 0x78]
mov byte [ebp - 4], 0x16
pop ecx
call fcn.004174f1
pop ecx
mov ecx, dword [ebp - 0x78]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00402e64
cmp dword [ebp - 0x34], 0
jne 0x42531e
jmp 0x42582d
mov eax, 0x1bb
cmp ax, word [ebp - 0x48]
jne 0x42582d
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 8]
call fcn.00421dc2
test eax, eax
je 0x425791
push str.Switching_scheme
lea ecx, [ebp - 0x80]
call fcn.00402829
push 0
push 2
lea edx, [ebp - 0x80]
mov byte [ebp - 4], 0xf
pop ecx
call fcn.004174f1
pop ecx
mov ecx, dword [ebp - 0x80]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, dword [ebp - 0x50]
push eax
mov dword [ebp - 0x8c], 1
call dword [sym.imp.wininet.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.wininet.dll_InternetCloseHandle]
push edi
call dword [sym.imp.wininet.dll_InternetCloseHandle]
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], esi
jmp 0x425830
push str.No_CRDs_required
lea ecx, [ebp - 0x84]
call fcn.00402829
push 0
push 2
lea edx, [ebp - 0x84]
mov byte [ebp - 4], 0x13
pop ecx
call fcn.004174f1
pop ecx
mov ecx, dword [ebp - 0x84]
jmp 0x425825
test esi, esi
je 0x4257d8
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx + 0x3c]
call fcn.0043e412
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
push edi
call fcn.00424c22
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x425830
push 0x52
pop ebx
jmp 0x425830
push str.HttpQueryInfo_failed:
lea ecx, [ebp - 0x88]
call fcn.00402829
mov byte [ebp - 4], 0x10
lea edx, [ebp - 0x88]
push dword [ebp - 0x38]
push 2
pop ecx
call fcn.004174f1
pop ecx
mov ecx, dword [ebp - 0x88]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x9c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xa0]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [ebp - 0x8c], 0
jne 0x425157
jmp 0x4259ed
call dword [sym.imp.kernel32.dll_GetLastError]
push str.HttpOpenRequest_failed:
lea ecx, [ebp - 0x14]
mov ebx, eax
call fcn.00402829
push ebx
push 2
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
pop ecx
call fcn.004174f1
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [edi - 0x10]
call fcn.00402e64
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 1
call fcn.00402e64
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
jmp 0x4259ed
call dword [sym.imp.kernel32.dll_GetLastError]
push str.InternetConnect_failed:
lea ecx, [ebp - 0x14]
mov ebx, eax
call fcn.00402829
push ebx
push 2
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
pop ecx
call fcn.004174f1
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 1
call fcn.00402e64
mov esi, dword [ebp - 0x1c]
jmp 0x4259ed
call dword [sym.imp.kernel32.dll_GetLastError]
push str.InternetOpen_failed:
lea ecx, [ebp - 0x14]
mov edi, eax
call fcn.00402829
push edi
push 2
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 9
pop ecx
call fcn.004174f1
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0xd]
push eax
push edi
jmp 0x425976
push str.Unexpected_scheme:
lea ecx, [ebp - 0x14]
call fcn.00402829
mov byte [ebp - 4], 8
lea edx, [ebp - 0x14]
push dword [ebp - 0xd0]
push 2
pop ecx
call fcn.004174f1
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0xd]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp + 0x1c]
mov ecx, 0x515e58
mov byte [ebp - 0xd], 0
push dword [eax]
call main
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x425a61
push str.InternetCrackUrl_failed:
lea ecx, [ebp - 0x14]
call fcn.00402829
mov byte [ebp - 4], 4
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 2
lea edx, [ebp - 0x14]
pop ecx
call fcn.004174f1
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [ebp - 0x58], 0
je 0x425a22
push str.Direct_Download_succeeded
lea ecx, [ebp - 0x30]
xor ebx, ebx
call fcn.00402829
push ebx
push 2
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 0x19
pop ecx
call fcn.004174f1
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push eax
mov eax, dword [ebp + 0x1c]
mov ecx, 0x515e58
push ebx
push dword [eax]
call main
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x425a48
push eax
call dword [sym.imp.wininet.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x425a56
push eax
call dword [sym.imp.wininet.dll_InternetCloseHandle]
test edi, edi
je 0x425a61
push edi
call dword [sym.imp.wininet.dll_InternetCloseHandle]
lea ecx, [esi - 0x10]
call fcn.00402e64
mov eax, dword [ebp - 0x58]
call fcn.0046abd1
ret 0x18