Function at 0x40fe70
Capabilities:
Check http status code
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d5b1
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1278
call fcn.004269e0
mov eax, dword [0x461580]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x1130], eax
mov eax, edi
mov byte [ebp - 0x1128], 0
cmp dword [edi + 0x14], 0xf
jbe 0x40fed2
mov eax, dword [edi]
push dword [ebp - 0x1128]
push dword [edi + 0x10]
push eax
lea eax, [ebp - 0x10b0]
push eax
call fcn.00401eb0
mov esi, dword [ebp - 0x109c]
lea eax, [ebp - 0x10b0]
push dword [ebp - 0x10a0]
cmp esi, 7
mov dword [ebp - 4], 0
cmova eax, dword [ebp - 0x10b0]
push eax
lea eax, [ebp - 0x11c8]
push eax
call fcn.0040e650
add esp, 0x1c
cmp dword [eax + 4], 0
je 0x410017
push dword [ebp - 0x10a0]
cmp esi, 7
lea eax, [ebp - 0x10b0]
cmova eax, dword [ebp - 0x10b0]
push eax
lea eax, [ebp - 0x11d0]
push eax
call fcn.0040e650
add esp, 0xc
xorps xmm0, xmm0
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x1078]
mov dword [ebp - 0x1068], 0
movups xmmword [ebp - 0x1078], xmm0
mov dword [ebp - 0x1064], 0
call fcn.00401e10
lea eax, [ebp - 0x1118]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1078]
mov dword [ebp - 0x1118], 0
push eax
mov dword [ebp - 0x1114], 0x461010
call fcn.0040f530
add esp, 8
cmp dword [ebp - 0x1118], 0
jne 0x410b3d
mov ecx, dword [ebp - 0x1064]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x40fffa
mov edx, dword [ebp - 0x1078]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40fff0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410b55
push ecx
push edx
call fcn.0042693f
add esp, 8
xor eax, eax
mov dword [ebp - 0x1068], 0
mov dword [ebp - 0x1064], 7
mov word [ebp - 0x1078], ax
mov dword [ebp - 0x1120], 0xfa11fb0b
mov dword [ebp - 0x111c], 0x98c89a48
mov eax, dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x111c]
mov dword [ebp - 0x10c0], eax
mov dword [ebp - 0x10bc], ecx
mov dword [ebp - 0x1120], 0x8c9eafc7
mov dword [ebp - 0x111c], 0x2d4becb8
mov eax, dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x111c]
mov dword [ebp - 0x10b8], eax
mov dword [ebp - 0x10b4], ecx
mov dword [ebp - 0x1120], 0xbe41a945
mov dword [ebp - 0x111c], 0xd99cdd65
mov eax, dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x111c]
push 0
mov dword [ebp - 0x1160], eax
mov dword [ebp - 0x1120], 0xc8cefaea
push 0
mov dword [ebp - 0x115c], ecx
mov dword [ebp - 0x111c], 0x2d4becb8
mov eax, dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x111c]
movaps xmm1, xmmword [ebp - 0x10c0]
push 0
mov dword [ebp - 0x1158], eax
lea eax, [ebp - 0x10c0]
mov dword [ebp - 0x1154], ecx
xorps xmm1, xmmword [ebp - 0x1160]
push 1
push eax
movaps xmmword [ebp - 0x10c0], xmm1
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [ebp - 0x112c], esi
test esi, esi
je 0x41012f
mov eax, dword [ebp - 0x1130]
cmp dword [eax + 0x14], 0xf
jbe 0x41010b
mov eax, dword [eax]
push 0
push 0x80000000
push 0
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x111c], eax
test eax, eax
jne 0x410179
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 0x1121], 0
mov ecx, dword [ebp - 0x109c]
cmp ecx, 7
jbe 0x410b19
mov edx, dword [ebp - 0x10b0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410b0f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410b5a
jmp 0x410b0f
push 0
lea ecx, [ebp - 0x1134]
mov dword [ebp - 0x1134], 0x20
push ecx
lea ecx, [ebp - 0x34]
push ecx
push 0x13
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
xorps xmm0, xmm0
mov dword [ebp - 0x1088], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1084], 0
movups xmmword [ebp - 0x1098], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4101c0
sub ecx, edx
lea eax, [ebp - 0x34]
push ecx
push eax
lea ecx, [ebp - 0x1098]
call fcn.00401d80
mov byte [ebp - 4], 2
call fcn.0042b7ad
cmp dword [ebp - 0x1084], 0xf
lea esi, [ebp - 0x1098]
mov dword [ebp - 0x1138], eax
cmova esi, dword [ebp - 0x1098]
mov dword [eax], 0
lea eax, [ebp - 0x1130]
push 0xa
push eax
push esi
call fcn.004302cb
add esp, 0xc
mov dword [ebp - 0x113c], eax
cmp esi, dword [ebp - 0x1130]
je 0x410b5f
mov eax, dword [ebp - 0x1138]
cmp dword [eax], 0x22
je 0x410b69
mov ecx, dword [ebp - 0x1084]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x410273
mov edx, dword [ebp - 0x1098]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410269
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410b73
push ecx
push edx
call fcn.0042693f
add esp, 8
cmp dword [ebp - 0x113c], 0xc8
mov dword [ebp - 0x1088], 0
mov dword [ebp - 0x1084], 0xf
mov byte [ebp - 0x1098], 0
jne 0x410712
mov esi, dword [ebp - 0x111c]
lea eax, [ebp - 0x1140]
push 0
push eax
lea eax, [ebp - 0x1144]
mov dword [ebp - 0x1144], 0
push eax
push 0x20000005
push esi
mov dword [ebp - 0x1140], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x4102ee
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x112c]
call esi
jmp 0x41012f
push 1
push 0x40
push 0x20
push edi
lea ecx, [ebp - 0x1280]
call fcn.0040aab0
mov eax, dword [ebp - 0x1280]
mov byte [ebp - 4], 3
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1274], 6
je 0x410338
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x112c]
call esi
lea ecx, [ebp - 0x1280]
call fcn.0040d070
jmp 0x41012f
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x410342
mov edx, dword [edi]
mov dword [ebp - 0x1120], 0x5eb64988
mov dword [ebp - 0x111c], 0x28bc3397
mov eax, dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x111c]
mov dword [ebp - 0x1060], eax
mov dword [ebp - 0x105c], ecx
mov dword [ebp - 0x1120], 0x20391a00
mov dword [ebp - 0x111c], 0xc5a60c5a
mov eax, dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x111c]
mov dword [ebp - 0x1058], eax
mov dword [ebp - 0x1054], ecx
mov dword [ebp - 0x1120], 0x82a6e2e2
mov dword [ebp - 0x111c], 0x2ac6489e
mov eax, dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x111c]
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x104c], ecx
mov dword [ebp - 0x1120], 0x9930593c
mov dword [ebp - 0x111c], 0xfb4e549a
mov eax, dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x111c]
mov dword [ebp - 0x1048], eax
mov dword [ebp - 0x1044], ecx
mov dword [ebp - 0x1120], 0xbe41a945
mov dword [ebp - 0x111c], 0xd99cdd65
mov eax, dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x111c]
mov dword [ebp - 0x1120], 0xc8cefaea
mov dword [ebp - 0x111c], 0x2d4becb8
mov dword [ebp - 0x1170], eax
mov eax, dword [ebp - 0x1120]
mov dword [ebp - 0x116c], ecx
mov ecx, dword [ebp - 0x111c]
mov dword [ebp - 0x1120], 0x6252c207
mov dword [ebp - 0x111c], 0x1026a377
mov dword [ebp - 0x1168], eax
mov eax, dword [ebp - 0x1120]
mov dword [ebp - 0x1164], ecx
mov ecx, dword [ebp - 0x111c]
mov dword [ebp - 0x1160], eax
mov dword [ebp - 0x1120], 0x93437c1c
mov dword [ebp - 0x115c], ecx
mov dword [ebp - 0x111c], 0xfb4e549a
mov eax, dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x111c]
movaps xmm1, xmmword [ebp - 0x1170]
xorps xmm1, xmmword [ebp - 0x1060]
movaps xmmword [ebp - 0x1060], xmm1
movaps xmm1, xmmword [ebp - 0x1050]
mov dword [ebp - 0x1158], eax
lea eax, [ebp - 0x1060]
mov dword [ebp - 0x1154], ecx
xorps xmm1, xmmword [ebp - 0x1160]
push edx
push eax
movaps xmmword [ebp - 0x1050], xmm1
call fcn.00419850
add esp, 8
lea eax, [ebp - 0x1128]
push eax
push 0x1000
lea eax, [ebp - 0x1038]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41053d
nop word [eax + eax]
mov eax, dword [ebp - 0x1128]
test eax, eax
je 0x41053d
push 0
push eax
lea eax, [ebp - 0x1038]
push eax
lea ecx, [ebp - 0x1280]
call fcn.00418150
lea eax, [ebp - 0x1128]
push eax
push 0x1000
lea eax, [ebp - 0x1038]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x410500
cmp dword [edi + 0x14], 0xf
jbe 0x410545
mov edi, dword [edi]
mov dword [ebp - 0x1118], 0x55a84991
mov dword [ebp - 0x1114], 0xaab9fd5f
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x1060], eax
mov dword [ebp - 0x105c], ecx
mov dword [ebp - 0x1118], 0x273f09ca
mov dword [ebp - 0x1114], 0xc3a6145d
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x1058], eax
mov dword [ebp - 0x1054], ecx
mov dword [ebp - 0x1118], 0x81b22527
mov dword [ebp - 0x1114], 0xf5c05087
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x104c], ecx
mov dword [ebp - 0x1118], 0x934376f1
mov dword [ebp - 0x1114], 0xfb4e549a
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x1048], eax
mov dword [ebp - 0x1044], ecx
mov dword [ebp - 0x1118], 0xbe41a945
mov dword [ebp - 0x1114], 0xd99cdd65
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x1080], eax
mov dword [ebp - 0x107c], ecx
mov dword [ebp - 0x1118], 0xc8cefaea
mov dword [ebp - 0x1114], 0x2d4becb8
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x1078], eax
mov dword [ebp - 0x1074], ecx
mov dword [ebp - 0x1118], 0x6252c207
mov dword [ebp - 0x1114], 0x1026a377
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x1070], eax
mov dword [ebp - 0x106c], ecx
mov dword [ebp - 0x1118], 0x93437c1c
mov dword [ebp - 0x1114], 0xfb4e549a
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1114]
movaps xmm1, xmmword [ebp - 0x1080]
xorps xmm1, xmmword [ebp - 0x1060]
movaps xmmword [ebp - 0x1060], xmm1
movaps xmm1, xmmword [ebp - 0x1050]
mov dword [ebp - 0x1068], eax
lea eax, [ebp - 0x1060]
mov dword [ebp - 0x1064], ecx
xorps xmm1, xmmword [ebp - 0x1070]
push edi
push eax
movaps xmmword [ebp - 0x1050], xmm1
call fcn.00419850
add esp, 8
lea ecx, [ebp - 0x1280]
call fcn.0040f4a0
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x112c]
call esi
lea ecx, [ebp - 0x1280]
call fcn.0040d070
mov byte [ebp - 0x1121], 1
jmp 0x410136
cmp dword [edi + 0x14], 0xf
jbe 0x41071a
mov edi, dword [edi]
mov dword [ebp - 0x1118], 0x4d614c88
mov dword [ebp - 0x1114], 0x37773d81
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x1110], eax
mov dword [ebp - 0x110c], ecx
mov dword [ebp - 0x1118], 0x39ee061b
mov dword [ebp - 0x1114], 0xcdbc0c52
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x1108], eax
mov dword [ebp - 0x1104], ecx
mov dword [ebp - 0x1118], 0x96723ef5
mov dword [ebp - 0x1114], 0x2acd4a97
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x1100], eax
mov dword [ebp - 0x10fc], ecx
mov dword [ebp - 0x1118], 0xbf30593c
mov dword [ebp - 0x1114], 0x15a4a5ba
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x10f8], eax
mov dword [ebp - 0x10f4], ecx
mov dword [ebp - 0x1118], 0x40bdddf9
mov dword [ebp - 0x1114], 0x27f7d6fb
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x10f0], eax
mov dword [ebp - 0x10ec], ecx
mov dword [ebp - 0x1118], 0x3e3b9d20
mov dword [ebp - 0x1114], 0x828c1c0c
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x10e8], eax
mov dword [ebp - 0x10e4], ecx
mov dword [ebp - 0x1118], 0x88d7ba78
mov dword [ebp - 0x1114], 0x5cb3d4f9
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x10e0], eax
mov dword [ebp - 0x10dc], ecx
mov dword [ebp - 0x1118], 0xe03a9290
mov dword [ebp - 0x1114], 0x6eaa995e
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x10d8], eax
mov dword [ebp - 0x10d4], ecx
mov dword [ebp - 0x1118], 0xa2e39ee4
mov dword [ebp - 0x1114], 0xb3a3f95d
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x10d0], eax
mov dword [ebp - 0x10cc], ecx
mov dword [ebp - 0x1118], 0x78a4f092
mov dword [ebp - 0x1114], 0x1c63c510
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x10c8], eax
mov dword [ebp - 0x10c4], ecx
mov dword [ebp - 0x1118], 0xbe41a945
mov dword [ebp - 0x1114], 0xd99cdd65
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x1118], 0xc8cefaea
mov dword [ebp - 0x1114], 0x2d4becb8
mov dword [ebp - 0x11c0], eax
mov eax, dword [ebp - 0x1118]
mov dword [ebp - 0x11bc], ecx
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x1118], 0x6252c207
mov dword [ebp - 0x1114], 0x1026a377
mov dword [ebp - 0x11b8], eax
mov eax, dword [ebp - 0x1118]
mov dword [ebp - 0x11b4], ecx
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x1118], 0x93437c1c
mov dword [ebp - 0x11b0], eax
mov dword [ebp - 0x1114], 0xfb4e549a
mov eax, dword [ebp - 0x1118]
mov dword [ebp - 0x11ac], ecx
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x1118], 0x60583809
mov dword [ebp - 0x1114], 0xc4122719
mov dword [ebp - 0x11a8], eax
mov eax, dword [ebp - 0x1118]
mov dword [ebp - 0x11a4], ecx
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x1118], 0xd3d5bdce
mov dword [ebp - 0x1114], 0x737ef22c
mov dword [ebp - 0x11a0], eax
mov eax, dword [ebp - 0x1118]
mov dword [ebp - 0x119c], ecx
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x1118], 0x7a26488b
mov dword [ebp - 0x1114], 0xae56271b
mov dword [ebp - 0x1198], eax
mov eax, dword [ebp - 0x1118]
mov dword [ebp - 0x1194], ecx
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x1118], 0xf1a61b0
mov dword [ebp - 0x1114], 0x8e4877ae
mov dword [ebp - 0x1190], eax
mov eax, dword [ebp - 0x1118]
mov dword [ebp - 0x118c], ecx
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x1118], 0x52067a0d
mov dword [ebp - 0x1114], 0xb3a3f3bd
mov dword [ebp - 0x1188], eax
mov eax, dword [ebp - 0x1118]
mov dword [ebp - 0x1184], ecx
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x1180], eax
mov dword [ebp - 0x1118], 0x78a4f092
mov dword [ebp - 0x117c], ecx
mov dword [ebp - 0x1114], 0x1c63c510
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1114]
movaps xmm1, xmmword [ebp - 0x11c0]
xorps xmm1, xmmword [ebp - 0x1110]
movaps xmmword [ebp - 0x1110], xmm1
movaps xmm1, xmmword [ebp - 0x1100]
xorps xmm1, xmmword [ebp - 0x11b0]
movaps xmmword [ebp - 0x1100], xmm1
movaps xmm1, xmmword [ebp - 0x10f0]
xorps xmm1, xmmword [ebp - 0x11a0]
movaps xmmword [ebp - 0x10f0], xmm1
movaps xmm1, xmmword [ebp - 0x10e0]
xorps xmm1, xmmword [ebp - 0x1190]
movaps xmmword [ebp - 0x10e0], xmm1
movaps xmm1, xmmword [ebp - 0x10d0]
mov dword [ebp - 0x1178], eax
lea eax, [ebp - 0x1110]
mov dword [ebp - 0x1174], ecx
xorps xmm1, xmmword [ebp - 0x1180]
push edi
push eax
movaps xmmword [ebp - 0x10d0], xmm1
call fcn.00419850
add esp, 8
mov byte [ebp - 0x1121], 1
jmp 0x410136
push ecx
push edx
call fcn.0042693f
add esp, 8
mov al, byte [ebp - 0x1121]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00426952
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x1078]
push eax
lea eax, [ebp - 0x1118]
push eax
push str.create_directories
call fcn.0040eb20
call fcn.0042b6bf
call fcn.0042b6bf
push str.invalid_stoi_argument
call fcn.00425607
push str.stoi_argument_out_of_range
call fcn.00425647
call fcn.0042b6bf
int3