Function at 0x40f500
Capabilities:
Check http status code
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd2cf
mov eax, dword fs:[0]
push eax
sub esp, 0x724
mov eax, dword [0x5293c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [ebp + 8], 0
mov eax, dword [ebp + 0x10]
je 0x40feb5
push eax
lea eax, [ebp - 0x1a8]
push eax
call fcn.004015e0
add esp, 8
cmp dword [ebp - 0x194], 0xf
lea eax, [ebp - 0x1a8]
mov dword [ebp - 4], 0
cmova eax, dword [ebp - 0x1a8]
push eax
call sym.GameDownloader.exe__cJSON_Parse_4
mov esi, eax
test esi, esi
je 0x40fe7f
push str.code
push esi
call sym.GameDownloader.exe__cJSON_GetObjectItem_8
cmp dword [eax + 0x14], 0xc8
je 0x40f667
push 3
push dword [edi + 0x50]
lea ecx, [edi - 0x48c]
call sym.GameDownloader.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::KillTimer_class_DuiLib::CControlUI___unsigned_int_
push 0x564
lea eax, [ebp - 0x70c]
push 0
push eax
call fcn.004b7c40
add esp, 0xc
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x70c]
push eax
call fcn.00411f20
push 0
push 0
push 0
push 0
push 0
push 0x100
push 0x10ce0000
push 0x4e1d04
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x70c]
call sym.GameDownloader.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____
lea ecx, [ebp - 0x70c]
call sym.GameDownloader.exe_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_
push 0
lea ecx, [ebp - 0x70c]
call fcn.004130e0
push 0x4e292c
lea ecx, [ebp - 0x70c]
call fcn.004134f0
push 0x4e293c
lea ecx, [ebp - 0x70c]
call fcn.00413420
lea ecx, [ebp - 0x70c]
call sym.GameDownloader.exe_public:_unsigned_int___thiscall_DuiLib::CWindowWnd::ShowModal_void_
push 0
push 0xf060
push 0x112
lea ecx, [edi - 0x4b8]
call sym.GameDownloader.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x70c]
call fcn.004120d0
jmp 0x40fe7f
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x40fc40
push str.data
push esi
call sym.GameDownloader.exe__cJSON_GetObjectItem_8
push str.productName
push eax
mov dword [ebp - 0x714], eax
call sym.GameDownloader.exe__cJSON_GetObjectItem_8
mov edx, dword [eax + 0x10]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f697
sub ecx, esi
lea esi, [edi + 0x64]
push ecx
push edx
mov ecx, esi
call fcn.00402a50
push str.orderNo
push dword [ebp - 0x714]
call sym.GameDownloader.exe__cJSON_GetObjectItem_8
mov edx, dword [eax + 0x10]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x710], eax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f6d0
sub ecx, dword [ebp - 0x710]
push ecx
push edx
lea ecx, [edi + 0x7c]
call fcn.00402a50
push 0x4e2980
push dword [ebp - 0x714]
call sym.GameDownloader.exe__cJSON_GetObjectItem_8
mov edx, dword [eax + 0x10]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x710], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f705
sub ecx, dword [ebp - 0x710]
push ecx
push edx
lea ecx, [edi + 0x94]
call fcn.00402a50
push str.price
push dword [ebp - 0x714]
call sym.GameDownloader.exe__cJSON_GetObjectItem_8
push 0x104
push 0
movsd xmm0, qword [eax + 0x18]
lea eax, [ebp - 0x2ac]
mulsd xmm0, qword [0x4e2ae0]
push eax
cvtpd2ps xmm0, xmm0
movss dword [ebp - 0x710], xmm0
movss dword [edi + 0xac], xmm0
call fcn.004b7c40
movss xmm0, dword [ebp - 0x710]
lea eax, [ebp - 0x2ac]
cvtps2pd xmm0, xmm0
add esp, 4
movsd qword [esp], xmm0
push str._.2f
push eax
call fcn.004039a0
add esp, 0x10
cmp dword [edi + 0x58], 0
je 0x40fc34
cmp dword [edi + 0x5c], 0
je 0x40fc34
cmp dword [edi + 0x60], 0
je 0x40fc34
cmp dword [edi + 0x50], 0
je 0x40fc34
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x40f7bc
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00401950
add esp, 8
cmp dword [edi + 8], 2
mov byte [ebp - 4], 2
jne 0x40f90f
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x710], ecx
cmp ecx, 0x13
jb 0x40f823
cmp ecx, 7
mov dword [ebp - 0x120], 0x13
push 0x26
lea esi, [ebp - 0x130]
cmova esi, dword [ebp - 0x130]
push 0x4e2994
push esi
call fcn.004b76c0
add esp, 0xc
xor eax, eax
mov word [esi + 0x26], ax
lea esi, [edi + 0x64]
jmp 0x40f902
mov edx, ecx
mov eax, accept
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x40f839
mov ecx, accept
jmp 0x40f846
lea eax, [edx + ecx]
mov ecx, 0x17
cmp eax, ecx
cmova ecx, eax
lea eax, [ebp - 0x714]
mov dword [ebp - 0x714], ecx
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00408310
movups xmm0, xmmword [0x4e2994]
mov ecx, dword [ebp - 0x714]
mov edx, eax
mov dword [ebp - 0x11c], ecx
add esp, 8
mov dword [ebp - 0x120], 0x13
mov dword [ebp - 0x118], edx
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x4e29a4]
movups xmmword [edx + 0x10], xmm0
mov ecx, dword [0x4e29b4]
mov dword [edx + 0x20], ecx
mov ax, word [0x4e29b8]
mov word [edx + 0x24], ax
xor eax, eax
mov word [edx + 0x26], ax
mov eax, dword [ebp - 0x710]
cmp eax, 7
jbe 0x40f8fc
mov edx, dword [ebp - 0x130]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f8e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fed2
push ecx
push edx
call fcn.004b5d1e
mov eax, dword [ebp - 0x118]
add esp, 8
mov dword [ebp - 0x130], eax
jmp 0x40f902
mov dword [ebp - 0x130], edx
mov ecx, dword [edi + 0x58]
push 0xffff6600
call sym.GameDownloader.exe_public:_void___thiscall_DuiLib::CLabelUI::SetTextColor_unsigned_long_int_
cmp dword [edi + 8], 1
jne 0x40f9bd
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004b7c40
add esp, 0xc
cmp dword [esi + 0x14], 0xf
jbe 0x40f93c
mov esi, dword [esi]
mov eax, dword [edi + 0x64]
jmp 0x40f93f
lea eax, [edi + 0x64]
push esi
push eax
lea eax, [ebp - 0x114]
push 0x4e29bc
push eax
call fcn.004039a0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.00401950
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x130]
cmp eax, esi
je 0x40f9a5
mov ecx, eax
call fcn.00402d40
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x130], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x120], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x190]
call fcn.00402d40
mov ecx, dword [edi + 0x58]
push 0xffff6699
call sym.GameDownloader.exe_public:_void___thiscall_DuiLib::CLabelUI::SetTextColor_unsigned_long_int_
push 4
xorps xmm0, xmm0
mov dword [ebp - 0x168], 0
push 0x4e29dc
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x164], 0
movups xmmword [ebp - 0x178], xmm0
call fcn.00408380
cmp dword [edi + 0x90], 0xf
lea eax, [edi + 0x7c]
mov byte [ebp - 4], 3
jbe 0x40f9ff
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.00401950
add esp, 8
cmp dword [eax + 0x14], 7
mov ecx, eax
mov byte [ebp - 4], 4
jbe 0x40fa1d
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x178]
call fcn.0040abe0
lea ecx, [ebp - 0x190]
mov byte [ebp - 4], 3
call fcn.00402d40
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.00401950
add esp, 8
push 1
push 0x4e29e8
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 5
call fcn.0040abe0
mov ecx, dword [edi + 0x58]
lea edx, [ebp - 0x130]
cmp dword [ebp - 0x11c], 7
cmova edx, dword [ebp - 0x130]
mov eax, dword [ecx]
push edx
call dword [eax + 0x3c]
mov ecx, dword [edi + 0x5c]
lea edx, [ebp - 0x178]
cmp dword [ebp - 0x164], 7
cmova edx, dword [ebp - 0x178]
mov eax, dword [ecx]
push edx
call dword [eax + 0x3c]
mov ecx, dword [edi + 0x60]
lea edx, [ebp - 0x160]
cmp dword [ebp - 0x14c], 7
cmova edx, dword [ebp - 0x160]
mov eax, dword [ecx]
push edx
call dword [eax + 0x3c]
lea eax, [ebp - 0x148]
push eax
call fcn.0040a850
mov ecx, eax
call fcn.0040c2a0
push 0xa
push str.qrcode.bmp
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 6
call fcn.00402160
cmp dword [ebp - 0x134], 0xf
lea eax, [ebp - 0x148]
cmova eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40fb73
lea eax, [ebp - 0x190]
push eax
call fcn.0040a850
mov ecx, eax
call fcn.0040c2a0
push 0xf
push 0
lea eax, [ebp - 0x730]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x715]
call fcn.00407ca0
push eax
lea ecx, [ebp - 0x190]
mov byte [ebp - 4], 8
call fcn.0040ef50
lea ecx, [ebp - 0x730]
mov byte [ebp - 4], 7
call fcn.00402da0
push 4
push str..bmp
lea ecx, [ebp - 0x190]
call fcn.00402160
lea ecx, [ebp - 0x190]
mov byte [ebp - 4], 6
call fcn.00402da0
cmp dword [edi + 0xa8], 0xf
lea ecx, [edi + 0x94]
jbe 0x40fb84
mov ecx, dword [ecx]
cmp dword [ebp - 0x134], 0xf
lea eax, [ebp - 0x148]
push 0xf0
cmova eax, dword [ebp - 0x148]
push eax
push ecx
call fcn.004b1860
add esp, 0xc
test eax, eax
jne 0x40fbf3
cmp dword [ebp - 0x134], 0xf
lea eax, [ebp - 0x148]
cmova eax, dword [ebp - 0x148]
push eax
lea eax, [ebp - 0x730]
push eax
call fcn.00401950
add esp, 8
cmp dword [eax + 0x14], 7
mov byte [ebp - 4], 9
jbe 0x40fbdb
mov eax, dword [eax]
mov ecx, dword [edi + 0x50]
push eax
call sym.GameDownloader.exe_public:_void___thiscall_DuiLib::CControlUI::SetBkImage_wchar_t_const__
lea ecx, [ebp - 0x730]
mov byte [ebp - 4], 6
call fcn.00402d40
push 0x3e8
push 3
push dword [edi + 0x50]
lea ecx, [edi - 0x48c]
call sym.GameDownloader.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::SetTimer_class_DuiLib::CControlUI___unsigned_int__unsigned_int_
lea ecx, [ebp - 0x148]
call fcn.00402da0
lea ecx, [ebp - 0x160]
call fcn.00402d40
lea ecx, [ebp - 0x178]
call fcn.00402d40
lea ecx, [ebp - 0x130]
call fcn.00402d40
mov byte [edi + 0xb4], 1
jmp 0x40fe7f
cmp eax, 2
jne 0x40fe7f
push str.status
push esi
call sym.GameDownloader.exe__cJSON_GetObjectItem_8
lea ecx, [ebp - 0x160]
mov eax, dword [eax + 0x10]
push eax
call fcn.00402240
push 0x4e2a08
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 0xa
call fcn.004102c0
lea ecx, [ebp - 0x160]
test eax, eax
je 0x40fe7a
push 0x4e2a0c
call fcn.004102c0
test eax, eax
jne 0x40fd96
push 1
mov byte [edi + 0xb5], 1
call fcn.0040a850
mov ecx, eax
call fcn.0040c750
push str.SoftwareSNGameDownloader
push reloc.WS2_32.dll_accept
call fcn.00401cb0
add esp, 8
test al, al
jne 0x40fcdb
push 0x20006
push str.SoftwareSNGameDownloader
push 0
push reloc.WS2_32.dll_accept
call fcn.00401c50
add esp, 0x10
mov eax, dword [edi + 8]
cmp eax, 2
jne 0x40fd0d
push eax
lea eax, [edi + 0x7c]
push eax
push 0x4e2a0c
push str.SoftwareSNGameDownloader
push reloc.WS2_32.dll_accept
call fcn.00401bf0
mov eax, dword [edi + 4]
add esp, 0x14
mov dword [eax], 0
jmp 0x40fe56
cmp eax, 1
jne 0x40fd36
call fcn.0040a850
mov ecx, eax
call sym.GameDownloader.exe_public:_struct_HDC______thiscall_DuiLib::CPaintManagerUI::GetPaintDC_void_const
push eax
lea eax, [ebp - 0x730]
push eax
call fcn.00401550
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 0xb
jmp 0x40fd58
call fcn.0040a850
mov ecx, eax
call fcn.0040c2c0
push eax
lea eax, [ebp - 0x730]
push eax
call fcn.00401550
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 0xc
cmp dword [ecx + 0x14], 0xf
jbe 0x40fd60
mov ecx, dword [ecx]
push 2
lea eax, [edi + 0x7c]
push eax
push ecx
push str.SoftwareSNGameDownloader
push reloc.WS2_32.dll_accept
call fcn.00401bf0
add esp, 0x14
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x730]
call fcn.00402da0
mov eax, dword [edi + 4]
mov dword [eax], 0
jmp 0x40fe56
push 3
push dword [edi + 0x50]
lea ecx, [edi - 0x48c]
call sym.GameDownloader.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::KillTimer_class_DuiLib::CControlUI___unsigned_int_
push 0x564
lea eax, [ebp - 0x70c]
mov byte [edi + 0xb5], 1
push 0
push eax
call fcn.004b7c40
add esp, 0xc
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x70c]
push eax
call fcn.00411f20
push 0
push 0
push 0
push 0
push 0
push 0x100
push 0x10ce0000
push 0x4e1d04
mov byte [ebp - 4], 0xd
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x70c]
call sym.GameDownloader.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____
lea ecx, [ebp - 0x70c]
call sym.GameDownloader.exe_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_
push 0
lea ecx, [ebp - 0x70c]
call fcn.004130e0
push 0x4e2a10
lea ecx, [ebp - 0x70c]
call fcn.004134f0
push 0x4e2a1c
lea ecx, [ebp - 0x70c]
call fcn.00413420
lea ecx, [ebp - 0x70c]
call sym.GameDownloader.exe_public:_unsigned_int___thiscall_DuiLib::CWindowWnd::ShowModal_void_
lea ecx, [ebp - 0x70c]
mov byte [ebp - 4], 0xa
call fcn.004120d0
push 0
push 0xf060
push 0x112
lea ecx, [edi - 0x4b8]
call sym.GameDownloader.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x160]
call fcn.00402da0
mov ecx, dword [ebp - 0x194]
cmp ecx, 0xf
jbe 0x40feb5
mov edx, dword [ebp - 0x1a8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40feab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fed7
push ecx
push edx
call fcn.004b5d1e
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.004b5d2c
mov esp, ebp
pop ebp
ret 0xc
call fcn.004ba13f
call fcn.004ba13f
int3