Function at 0x409c70
Capabilities:
Check http status code
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41dd2f
mov eax, dword fs:[0]
push eax
mov eax, 0x1028
call fcn.0040ff50
mov eax, dword [0x426ae4]
xor eax, esp
mov dword [esp + 0x1024], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x426ae4]
xor eax, esp
push eax
lea eax, [esp + 0x103c]
mov dword fs:[0], eax
xor edi, edi
lea esi, [esp + 0x20]
mov dword [esp + 0x1044], edi
call fcn.00408990
lea eax, [esp + 0x104c]
push eax
mov ecx, esi
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x1050], 1
call fcn.004068e0
push 0x42811c
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x105c], 2
call fcn.004068e0
push 0x428118
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x1068], 3
call fcn.004068e0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
push eax
mov byte [esp + 0x106c], 4
call fcn.004029e0
lea esi, [eax + 0x10]
push edi
push esi
call fcn.00410b23
add esp, 0x30
cmp eax, 0xffffffff
lea eax, [esi - 0x10]
setne bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409d5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x409d69
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x41f08c]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.004029e0
lea esi, [eax + 0x10]
push edi
push esi
call fcn.00410b23
add esp, 0xc
cmp eax, 0xffffffff
lea eax, [esi - 0x10]
setne bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409da5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x409db4
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x41f08c]
push 0xfff
lea edx, [esp + 0x3d]
push edi
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
mov byte [esp + 0x44], 0
call fcn.00410a20
add esp, 0xc
push edi
push edi
push edi
push edi
push str.AliCertNotifyDownloader
call dword [0x41f2d0]
mov ebx, eax
cmp ebx, edi
jne 0x409ec3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x1044], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x1044], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x1044], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x1044], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x104c]
add eax, 0xfffffff0
mov dword [esp + 0x1044], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409ebb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x40a1f1
push str.http:__download.alipay.com_sec_cert_
lea ecx, [esp + 0x28]
call fcn.00408680
mov eax, dword [esp + 0x104c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x104c], 5
call fcn.00406490
mov ecx, dword [esp + 0x24]
push edi
push 0x80000000
push edi
push edi
push ecx
push ebx
call dword [0x41f2d4]
mov ebp, eax
cmp ebp, edi
jne 0x409f40
push ebx
call dword [0x41f2d8]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x1044], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409ded
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x409ded
lea ecx, [esp + 0x104c]
push 0x428124
push ecx
call fcn.004027e0
add esp, 8
test al, al
je 0x409fd5
push edi
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x38]
push eax
push 0x20000013
push ebp
mov dword [esp + 0x48], 4
call dword [0x41f2dc]
cmp eax, edi
je 0x409fd5
cmp dword [esp + 0x30], 0x194
jne 0x409fd5
mov esi, dword [0x41f2d8]
push ebx
call esi
push ebp
call esi
lea ecx, [esp + 0x24]
call fcn.004028a0
lea ecx, [esp + 0x18]
call fcn.004028a0
lea ecx, [esp + 0x14]
call fcn.004028a0
lea ecx, [esp + 0x1c]
call fcn.004028a0
lea ecx, [esp + 0x20]
call fcn.004028a0
lea ecx, [esp + 0x104c]
call fcn.004028a0
mov eax, 0x4e24
jmp 0x40a1f1
mov ecx, dword [esp + 0x14]
push 0x41fca0
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00410f04
add esp, 0xc
cmp dword [esp + 0x28], edi
jne 0x40a01f
mov esi, dword [0x41f2d8]
push ebx
call esi
push ebp
call esi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x1044], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x409f2b
mov edi, dword [0x41f1d8]
call edi
push 0x1000
lea ecx, [esp + 0x3c]
push 0
push ecx
call fcn.00410a20
mov esi, dword [0x41f2e0]
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
push 0x1000
lea eax, [esp + 0x40]
push eax
push ebp
call esi
test eax, eax
je 0x40a0a5
call edi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40a0a5
mov ecx, dword [esp + 0x28]
push ecx
push eax
lea edx, [esp + 0x40]
push 1
push edx
call fcn.00410dbc
push 0x1000
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.00410a20
add esp, 0x1c
push 1
call dword [0x41f14c]
lea ecx, [esp + 0x2c]
push ecx
push 0x1000
lea edx, [esp + 0x40]
push edx
push ebp
call esi
test eax, eax
jne 0x40a057
call edi
mov eax, dword [esp + 0x28]
push eax
call fcn.00410bde
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
add esp, 4
push 1
push ecx
push edx
call dword [0x41f090]
mov eax, dword [esp + 0x14]
push eax
call dword [0x41f08c]
lea edi, [esp + 0x18]
call fcn.00409330
mov edi, dword [0x41f2d8]
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xfffffc7c
push ebx
add esi, 0x384
call edi
push ebp
call edi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x1044], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a121
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x1044], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a149
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x1044], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a171
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x1044], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a199
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x1044], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a1c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x104c]
add eax, 0xfffffff0
mov dword [esp + 0x1044], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a1ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x103c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1024]
xor ecx, esp
call fcn.0040ff3c
add esp, 0x1034
ret