Function at 0x506710
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6079b2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6b000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], 0
mov eax, dword [0x6b9760]
cmp dword [eax - 0xc], 0
je 0x506758
push eax
push str.DlgFrame
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::WindowImplBase::SetControlBkImage_wchar_t_const___wchar_t_const__]
mov eax, dword [0x6b9764]
test eax, eax
je 0x50676f
push eax
push str.DlgFrameBottom
mov ecx, esi
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::WindowImplBase::SetControlBKColor_wchar_t_const___unsigned_long_int_]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov edx, dword [0x6b9640]
push str.cd.dat
call fcn.0048e450
add esp, 4
push dword [eax]
push 0
push str.Promotion
push str.Other
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov ecx, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x5067cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
mov edi, dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::WindowImplBase::ShowWindow_wchar_t_const___bool_]
jne 0x5067e2
push 0
push str.discountPay
mov ecx, esi
call edi
call fcn.005548c0
test eax, eax
jne 0x5067f5
push eax
push str.wechatPay
mov ecx, esi
call edi
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x14]
mov edx, dword [0x6b9640]
push str.cd.dat
call fcn.0048e450
add esp, 4
push dword [eax]
push 0
push str.AliPayDiscount
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x506852
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x50688f
push eax
push str.aliPaySpecial
mov ecx, esi
mov dword [esi + 0x920], eax
call edi
push 0
push str.alipayDiskcountHint
mov ecx, esi
call edi
push 0
push str.aliPayRecommend
mov ecx, esi
call edi
push 0x16
push 0x1f4
push 0x202
mov ecx, esi
call fcn.004dafc0
cmp byte [0x6b9739], 0
jne 0x5068a3
push 0
push str.onlinePay
mov ecx, esi
call edi
push 0
push str.btnDiscountPay
mov ecx, esi
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::WindowImplBase::EnableWindow_wchar_t_const___bool_]
call fcn.00554a20
test eax, eax
mov ecx, esi
sete al
movzx eax, al
push eax
push str.optAgreeTerm
call edi
call fcn.00554a20
test eax, eax
mov ecx, esi
sete al
movzx eax, al
push eax
push str.btnTerm
call edi
push str.QRGif
lea ecx, [esi + 0x34]
call dword [sym.imp.ycomuiu.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov ecx, esi
mov dword [esi + 0x94c], eax
call fcn.00507e10
push 0
push 0x6ddd00
push 0xe2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4