Function at 0x41a100
Capabilities:
Check http status code
Check if file exists
Create directory
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4402
mov eax, dword fs:[0]
push eax
sub esp, 0x704
mov eax, dword [0x530400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x710], ecx
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 0x6fd]
call fcn.004080e0
mov esi, dword [ebp + 0xc]
cmp esi, 8
je 0x41b119
cmp byte [ebp + 8], 0
je 0x41b119
lea eax, [ebp - 0x17c]
push edi
push eax
call fcn.00401920
add esp, 8
cmp dword [ebp - 0x168], 0xf
lea eax, [ebp - 0x17c]
mov dword [ebp - 4], 0
cmova eax, dword [ebp - 0x17c]
push eax
call sym.RedAlert.exe__cJSON_Parse_4
mov dword [ebp - 0x708], eax
test eax, eax
je 0x41b0e3
push 0x4e78b0
push eax
call sym.RedAlert.exe__cJSON_GetObjectItem_8
push 0x4ea414
push dword [ebp - 0x708]
mov edi, dword [eax + 0x14]
call sym.RedAlert.exe__cJSON_GetObjectItem_8
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
movups xmmword [ebp - 0xe0], xmm0
mov dword [ebp - 0xcc], 0
mov edx, dword [eax + 0x10]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x704], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a1e0
sub ecx, dword [ebp - 0x704]
push ecx
push edx
lea ecx, [ebp - 0xe0]
call fcn.00403b90
mov byte [ebp - 4], 1
cmp edi, 0xc8
je 0x41a30c
cmp edi, 0x1f4
jne 0x41a262
cmp esi, 2
jne 0x41a262
mov eax, dword [ebp - 0x710]
lea ecx, [ebp - 0xe0]
push 0x4ea418
mov esi, dword [eax + 4]
mov edi, dword [eax - 8]
call fcn.004133e0
push 0xa
test eax, eax
jne 0x41a252
mov ecx, dword [ebp - 0x710]
push 2
push esi
mov byte [ecx + 0x18], al
mov ecx, edi
call dword [0x50b050]
jmp 0x41b0ad
push 3
push esi
mov ecx, edi
call dword [0x50b050]
jmp 0x41b0ad
push 0x568
lea eax, [ebp - 0x6fc]
push 0
push eax
call fcn.004bda10
add esp, 0xc
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x6fc]
push eax
call fcn.00416cb0
push 0
push 0
push 0
push 0
push 0
push 0x100
push 0x10ce0000
push 0x4e7d0c
mov byte [ebp - 4], 2
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x6fc]
call dword [0x50b060]
lea ecx, [ebp - 0x6fc]
call dword [0x50b068]
push 0
lea ecx, [ebp - 0x6fc]
call fcn.00418030
push 0x4e89a0
lea ecx, [ebp - 0x6fc]
call fcn.00418790
push 0x4e89b0
lea ecx, [ebp - 0x6fc]
call fcn.00418490
lea ecx, [ebp - 0x6fc]
call dword [0x50b064]
lea ecx, [ebp - 0x6fc]
call fcn.00416e10
jmp 0x41b0ad
test esi, esi
jne 0x41af0a
mov esi, dword [ebp - 0x708]
push str.wxPay
push esi
call sym.RedAlert.exe__cJSON_GetObjectItem_8
push str.zfbPay
push esi
cmp dword [eax + 0x14], 0
setne byte [ebp - 0x704]
call sym.RedAlert.exe__cJSON_GetObjectItem_8
push str.ylPay
push esi
cmp dword [eax + 0x14], 0
setne byte [ebp - 0x70c]
call sym.RedAlert.exe__cJSON_GetObjectItem_8
push str.downloadFastPath
push esi
cmp dword [eax + 0x14], 0
setne byte [ebp - 0x14]
call sym.RedAlert.exe__cJSON_GetObjectItem_8
lea ecx, [ebp - 0x194]
mov eax, dword [eax + 0x10]
push eax
call fcn.004025f0
push dword [ebp - 0x704]
mov byte [ebp - 4], 3
call fcn.0040ce80
mov ecx, eax
call fcn.0040fa10
push dword [ebp - 0x70c]
call fcn.0040ce80
mov ecx, eax
call fcn.0040fab0
push dword [ebp - 0x14]
call fcn.0040ce80
mov ecx, eax
call fcn.0040faa0
sub esp, 0x18
lea eax, [ebp - 0x194]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00402630
mov byte [ebp - 4], 4
call fcn.0040ce80
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040f650
push str.data
push esi
call sym.RedAlert.exe__cJSON_GetObjectItem_8
mov edi, eax
push edi
mov dword [ebp - 0x70c], edi
call sym.RedAlert.exe__cJSON_GetArraySize_4
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x41a80f
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
xor eax, eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x704], eax
test ecx, ecx
je 0x41a70c
push eax
push edi
call sym.RedAlert.exe__cJSON_GetArrayItem_8
xorps xmm0, xmm0
mov dword [ebp - 0x148], 0
movups xmmword [ebp - 0x158], xmm0
mov esi, eax
mov dword [ebp - 0x144], 0xf
movups xmmword [ebp - 0x140], xmm0
mov byte [ebp - 0x158], 0
movups xmmword [ebp - 0x128], xmm0
mov dword [ebp - 0x130], 0
movups xmmword [ebp - 0x110], xmm0
mov dword [ebp - 0x12c], 0xf
movups xmmword [ebp - 0xf8], xmm0
mov byte [ebp - 0x140], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0xf
mov byte [ebp - 0x110], 0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], 0
push str.commodityId
push esi
mov byte [ebp - 4], 6
call sym.RedAlert.exe__cJSON_GetObjectItem_8
push str.commodityPrice
push esi
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x164], eax
call sym.RedAlert.exe__cJSON_GetObjectItem_8
push str.couponPrice
push esi
movsd xmm0, qword [eax + 0x18]
cvtpd2ps xmm0, xmm0
movss dword [ebp - 0x160], xmm0
call sym.RedAlert.exe__cJSON_GetObjectItem_8
push str.commodityName
push esi
movsd xmm0, qword [eax + 0x18]
cvtpd2ps xmm0, xmm0
movss dword [ebp - 0x15c], xmm0
call sym.RedAlert.exe__cJSON_GetObjectItem_8
mov edx, dword [eax + 0x10]
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a550
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x158]
call fcn.00402e20
push str.commodityUrl
push esi
call sym.RedAlert.exe__cJSON_GetObjectItem_8
mov edx, dword [eax + 0x10]
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a580
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x140]
call fcn.00402e20
push str.commodityState
push esi
call sym.RedAlert.exe__cJSON_GetObjectItem_8
mov edx, dword [eax + 0x10]
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a5b0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x128]
call fcn.00402e20
push str.commodityDescribe
push esi
call sym.RedAlert.exe__cJSON_GetObjectItem_8
mov edx, dword [eax + 0x10]
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a5e0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x110]
call fcn.00402e20
push str.fastPath
push esi
call sym.RedAlert.exe__cJSON_GetObjectItem_8
mov edx, dword [eax + 0x10]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a610
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xf8]
call fcn.00402e20
cmp dword [ebp - 0x114], 0xf
lea ecx, [ebp - 0x128]
mov edi, dword [ebp - 0x118]
mov eax, 1
cmova ecx, dword [ebp - 0x128]
mov esi, edi
cmp edi, 1
mov edx, 0x4e7d54
cmova esi, eax
sub esi, 4
jb 0x41a668
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x41a66d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x41a657
cmp esi, 0xfffffffc
je 0x41a6a1
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x41a69a
cmp esi, 0xfffffffd
je 0x41a6a1
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x41a69a
cmp esi, 0xfffffffe
je 0x41a6a1
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x41a69a
cmp esi, 0xffffffff
je 0x41a6a1
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x41a6a1
sbb eax, eax
or eax, 1
jmp 0x41a6a3
xor eax, eax
test eax, eax
jne 0x41a6db
cmp edi, 1
jb 0x41a6db
ja 0x41a6db
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x164]
push ecx
push eax
cmp eax, dword [ebp - 0x18]
je 0x41a6d3
lea eax, [ebp - 0x20]
push eax
call fcn.00418f40
add esp, 0xc
add dword [ebp - 0x1c], 0x84
jmp 0x41a6db
lea ecx, [ebp - 0x20]
call fcn.00418b50
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 5
call fcn.0040e540
mov eax, dword [ebp - 0x704]
mov edi, dword [ebp - 0x70c]
inc eax
mov dword [ebp - 0x704], eax
cmp eax, dword [ebp - 0x14]
jb 0x41a430
mov esi, dword [ebp - 0x708]
lea eax, [ebp - 0x20]
push eax
call fcn.0040ce80
mov ecx, eax
call fcn.0040f3b0
xorps xmm0, xmm0
mov dword [ebp - 0x88], 0
movups xmmword [ebp - 0x98], xmm0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
movups xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
push str.xzqPicList
push esi
mov byte [ebp - 4], 8
call sym.RedAlert.exe__cJSON_GetObjectItem_8
mov esi, eax
push esi
mov dword [ebp - 0x70c], esi
call sym.RedAlert.exe__cJSON_GetArraySize_4
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
jne 0x41a81f
lea ecx, [ebp - 0x80]
call fcn.00403170
lea ecx, [ebp - 0x98]
call fcn.00403170
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x41a80f
mov edi, dword [ebp - 0x1c]
cmp esi, edi
je 0x41a7b6
mov ecx, esi
call fcn.0040e540
add esi, 0x84
cmp esi, edi
jne 0x41a7a2
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
mov eax, 0x3e0f83e1
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x84
mov eax, esi
cmp ecx, 0x1000
jb 0x41a7f0
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b136
push ecx
push esi
call fcn.004bbade
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x194]
call fcn.00403170
jmp 0x41b0ad
xor eax, eax
mov dword [ebp - 0x708], eax
test ecx, ecx
je 0x41aadd
nop
push eax
push esi
call sym.RedAlert.exe__cJSON_GetArrayItem_8
mov esi, eax
push str.picType
push esi
call sym.RedAlert.exe__cJSON_GetObjectItem_8
xorps xmm0, xmm0
mov dword [ebp - 0xb8], 0
movups xmmword [ebp - 0xc8], xmm0
mov dword [ebp - 0xb4], 0
mov edx, dword [eax + 0x10]
mov ecx, edx
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a870
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0xc8]
call fcn.00403b90
push str.picUrl
push esi
mov byte [ebp - 4], 9
call sym.RedAlert.exe__cJSON_GetObjectItem_8
xorps xmm0, xmm0
mov dword [ebp - 0xa0], 0
movups xmmword [ebp - 0xb0], xmm0
mov dword [ebp - 0x9c], 0
mov edx, dword [eax + 0x10]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a8c0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xb0]
call fcn.00403b90
cmp dword [ebp - 0xb4], 0xf
lea ecx, [ebp - 0xc8]
mov eax, dword [ebp - 0xc8]
mov edx, str.poster
mov edi, dword [ebp - 0xb8]
cmova ecx, eax
seta byte [ebp - 0x6fd]
mov dword [ebp - 0x704], eax
cmp edi, 6
mov byte [ebp - 4], 0xa
mov esi, edi
mov eax, 6
cmova esi, eax
sub esi, 4
jb 0x41a931
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x41a936
add ecx, 4
add edx, 4
sub esi, 4
jae 0x41a920
cmp esi, 0xfffffffc
je 0x41a96a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x41a963
cmp esi, 0xfffffffd
je 0x41a96a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x41a963
cmp esi, 0xfffffffe
je 0x41a96a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x41a963
cmp esi, 0xffffffff
je 0x41a96a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x41a96a
sbb eax, eax
or eax, 1
jmp 0x41a96c
xor eax, eax
test eax, eax
jne 0x41a99d
cmp edi, 6
jb 0x41a99d
ja 0x41a99d
cmp dword [ebp - 0x9c], 0xf
lea eax, [ebp - 0xb0]
push dword [ebp - 0xa0]
cmova eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0x98]
push eax
call fcn.00402e20
cmp byte [ebp - 0x6fd], 0
lea ecx, [ebp - 0xc8]
mov eax, 4
mov esi, edi
cmovne ecx, dword [ebp - 0x704]
mov edx, str.logo
cmp edi, 4
cmova esi, eax
sub esi, eax
jb 0x41a9d8
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x41a9dd
add ecx, 4
add edx, 4
sub esi, 4
jae 0x41a9c7
cmp esi, 0xfffffffc
je 0x41aa11
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x41aa0a
cmp esi, 0xfffffffd
je 0x41aa11
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x41aa0a
cmp esi, 0xfffffffe
je 0x41aa11
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x41aa0a
cmp esi, 0xffffffff
je 0x41aa11
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x41aa11
sbb eax, eax
or eax, 1
jmp 0x41aa13
xor eax, eax
test eax, eax
jne 0x41aa41
cmp edi, 4
jb 0x41aa41
ja 0x41aa41
cmp dword [ebp - 0x9c], 0xf
lea eax, [ebp - 0xb0]
push dword [ebp - 0xa0]
cmova eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0x80]
push eax
call fcn.00402e20
mov ecx, dword [ebp - 0x9c]
mov byte [ebp - 4], 9
cmp ecx, 0xf
jbe 0x41aa7f
mov edx, dword [ebp - 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41aa75
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b136
push ecx
push edx
call fcn.004bbade
add esp, 8
cmp byte [ebp - 0x6fd], 0
mov byte [ebp - 4], 8
je 0x41aac1
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0x704]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41aab7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b136
push ecx
push edx
call fcn.004bbade
add esp, 8
mov eax, dword [ebp - 0x708]
mov esi, dword [ebp - 0x70c]
inc eax
mov dword [ebp - 0x708], eax
cmp eax, dword [ebp - 0x14]
jb 0x41a830
lea eax, [ebp - 0x38]
push eax
call fcn.0040ce80
mov ecx, eax
call fcn.0040ef30
cmp dword [ebp - 0x24], 0xf
lea eax, [ebp - 0x38]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmova eax, dword [ebp - 0x38]
push eax
mov byte [ebp - 4], 0xb
call edi
test eax, eax
jne 0x41ab1f
cmp dword [ebp - 0x24], 0xf
lea eax, [ebp - 0x38]
push 0
cmova eax, dword [ebp - 0x38]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x68]
call fcn.00402630
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x50]
call fcn.00402630
cmp dword [ebp - 0x84], 0xf
lea eax, [ebp - 0x98]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
cmova eax, dword [ebp - 0x98]
push eax
mov byte [ebp - 4], 0xd
call esi
mov edx, eax
lea ecx, [edx + 1]
mov dword [ebp - 0x14], ecx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x41ab64
sub edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x68]
push edx
push eax
call fcn.004024e0
cmp dword [ebp - 0x6c], 0xf
lea eax, [ebp - 0x80]
cmova eax, dword [ebp - 0x80]
push eax
call esi
mov edx, eax
lea esi, [edx + 1]
nop dword [eax + eax]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x41ab90
sub edx, esi
lea ecx, [ebp - 0x50]
push edx
push eax
call fcn.004024e0
cmp dword [ebp - 0x54], 0xf
lea eax, [ebp - 0x68]
cmova eax, dword [ebp - 0x68]
push eax
call edi
test eax, eax
jne 0x41ac18
xor esi, esi
cmp dword [ebp - 0x54], 0xf
lea ecx, [ebp - 0x68]
push 0
cmova ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x84], 0xf
push 0
cmova eax, dword [ebp - 0x98]
push ecx
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x41abf9
cmp dword [ebp - 0x54], 0xf
lea eax, [ebp - 0x68]
cmova eax, dword [ebp - 0x68]
push eax
call edi
test eax, eax
jne 0x41ac01
inc esi
cmp esi, 3
jb 0x41abb7
jmp 0x41ac3d
sub esp, 0x18
lea eax, [ebp - 0x68]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00402630
mov byte [ebp - 4], 0xe
jmp 0x41ac2d
sub esp, 0x18
lea eax, [ebp - 0x68]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00402630
mov byte [ebp - 4], 0xf
call fcn.0040ce80
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.0040f860
cmp dword [ebp - 0x3c], 0xf
lea eax, [ebp - 0x50]
cmova eax, dword [ebp - 0x50]
push eax
call edi
test eax, eax
jne 0x41aca9
xor esi, esi
cmp dword [ebp - 0x6c], 0xf
lea ecx, [ebp - 0x80]
push 0
cmova ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0xf
push 0
cmova eax, dword [ebp - 0x50]
push eax
push ecx
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x41ac8a
cmp dword [ebp - 0x3c], 0xf
lea eax, [ebp - 0x50]
cmova eax, dword [ebp - 0x50]
push eax
call edi
test eax, eax
jne 0x41ac92
inc esi
cmp esi, 3
jb 0x41ac51
jmp 0x41acce
sub esp, 0x18
lea eax, [ebp - 0x50]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00402630
mov byte [ebp - 4], 0x10
jmp 0x41acbe
sub esp, 0x18
lea eax, [ebp - 0x50]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00402630
mov byte [ebp - 4], 0x11
call fcn.0040ce80
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.0040f6d0
mov eax, dword [ebp - 0x710]
push 0xa
push 1
push dword [eax + 4]
mov ecx, dword [eax - 8]
call dword [0x50b050]
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x41ad18
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41ad0e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b136
push ecx
push edx
call fcn.004bbade
add esp, 8
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
cmp ecx, 0xf
jbe 0x41ad5e
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41ad54
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b136
push ecx
push edx
call fcn.004bbade
add esp, 8
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
cmp ecx, 0xf
jbe 0x41ada4
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41ad9a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b136
push ecx
push edx
call fcn.004bbade
add esp, 8
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp ecx, 0xf
jbe 0x41adea
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41ade0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b136
push ecx
push edx
call fcn.004bbade
add esp, 8
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
cmp ecx, 0xf
jbe 0x41ae36
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41ae2c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b136
push ecx
push edx
call fcn.004bbade
add esp, 8
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
test esi, esi
je 0x41aecd
mov edi, dword [ebp - 0x1c]
cmp esi, edi
je 0x41ae74
nop
mov ecx, esi
call fcn.0040e540
add esi, 0x84
cmp esi, edi
jne 0x41ae60
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
mov eax, 0x3e0f83e1
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x84
mov eax, esi
cmp ecx, 0x1000
jb 0x41aeae
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b136
push ecx
push esi
call fcn.004bbade
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x180]
cmp ecx, 0xf
jbe 0x41b0ad
mov edx, dword [ebp - 0x194]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41b0a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b136
jmp 0x41b0a3
cmp esi, 2
jne 0x41aff6
push str.data
push dword [ebp - 0x708]
call sym.RedAlert.exe__cJSON_GetObjectItem_8
push str.downloadUrl
push eax
call sym.RedAlert.exe__cJSON_GetObjectItem_8
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0
mov edx, dword [eax + 0x10]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41af50
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.00403b90
cmp dword [ebp - 0x28], 0
mov byte [ebp - 4], 0x12
je 0x41b079
sub esp, 0x18
lea eax, [ebp - 0x38]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00402630
mov eax, dword [0x531e84]
mov byte [ebp - 4], 0x13
test eax, eax
jne 0x41afd0
push 0x1e0
call fcn.004bbaae
mov esi, eax
add esp, 4
mov dword [ebp - 0x70c], esi
mov byte [ebp - 4], 0x14
test esi, esi
je 0x41afc5
push 0x1e0
push 0
push esi
call fcn.004bda10
add esp, 0xc
mov ecx, esi
call fcn.0040e1c0
jmp 0x41afc7
xor eax, eax
mov byte [ebp - 4], 0x13
mov dword [0x531e84], eax
mov ecx, eax
mov byte [ebp - 4], 0x12
call fcn.0040f4e0
mov eax, dword [ebp - 0x710]
push 0xa
push 2
push dword [eax + 4]
mov ecx, dword [eax - 8]
call dword [0x50b050]
jmp 0x41b079
cmp esi, 4
jne 0x41b0ad
push str.data
push dword [ebp - 0x708]
call sym.RedAlert.exe__cJSON_GetObjectItem_8
push str.wechatNumber
push eax
call sym.RedAlert.exe__cJSON_GetObjectItem_8
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0
mov edx, dword [eax + 0x10]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41b037
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.00403b90
cmp dword [ebp - 0x28], 0
mov byte [ebp - 4], 0x15
je 0x41b079
sub esp, 0x18
lea eax, [ebp - 0x38]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00402630
mov byte [ebp - 4], 0x16
call fcn.0040ce80
mov ecx, eax
mov byte [ebp - 4], 0x15
call fcn.0040fa20
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x41b0ad
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41b0a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b13b
push ecx
push edx
call fcn.004bbade
add esp, 8
mov ecx, dword [ebp - 0xcc]
cmp ecx, 0xf
jbe 0x41b0e3
mov edx, dword [ebp - 0xe0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41b0d9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b13b
push ecx
push edx
call fcn.004bbade
add esp, 8
mov ecx, dword [ebp - 0x168]
cmp ecx, 0xf
jbe 0x41b119
mov edx, dword [ebp - 0x17c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41b10f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b13b
push ecx
push edx
call fcn.004bbade
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bbaec
mov esp, ebp
pop ebp
ret 0xc
call fcn.004bff0f
call fcn.004bff0f
int3