Function at 0x5022c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6070bb
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0x98], 0
mov dword [ebp - 4], 0
push str.cd.dat
mov edx, dword [0x6b9640]
lea ecx, [ebp - 0x9c]
call fcn.0048e450
add esp, 4
mov dword [ebp - 0x98], 2
push dword [eax]
push 0
push str.MimeTypeCheck
push str.Scan
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov ebx, 2
mov dword [ebp - 0x98], ebx
and ebx, 0xfffffffd
mov dword [ebp - 0x98], ebx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x9c]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50237c
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
test esi, esi
je 0x5028ee
push 0xfde9
mov edx, dword [edi + 0x91c]
lea ecx, [ebp - 0x2c]
call fcn.004de9c0
add esp, 4
mov dword [ebp - 4], 2
lea edi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov edx, dword [ebp - 0x2c]
cmovae edi, edx
lea ecx, [ebp - 0x2c]
cmovae ecx, edx
mov eax, dword [ebp - 0x1c]
add eax, ecx
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae ecx, edx
push edi
push eax
push ecx
lea ecx, [ebp - 0x9c]
call fcn.004e3480
add esp, 0xc
mov edx, dword [ebp - 0x1c]
test edx, edx
jne 0x502419
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x5028dc
inc edx
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
cmp edx, 0x1000
jb 0x5028d2
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50290f
jmp 0x5028d2
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae ecx, dword [ebp - 0x2c]
push 4
push str..jpg
call fcn.00464160
add esp, 8
test al, al
je 0x502446
push 0xb
push str..jpeg__.jpg
lea ecx, [ebp - 0x2c]
call fcn.00412890
mov eax, dword [0x6b1a7c]
mov esi, dword [eax]
cmp esi, eax
je 0x50255c
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x5024a1
lea eax, [ebp - 0x44]
push eax
call fcn.00436000
mov byte [ebp - 4], 3
or ebx, 4
mov dword [ebp - 0x98], ebx
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x50247c
mov edx, dword [eax]
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae ecx, dword [ebp - 0x2c]
push dword [eax + 0x10]
push edx
mov edx, dword [ebp - 0x1c]
call fcn.00464160
add esp, 8
test al, al
mov byte [ebp - 0x91], 1
jne 0x5024a8
mov byte [ebp - 0x91], 0
mov dword [ebp - 4], 2
test bl, 4
je 0x502503
and ebx, 0xfffffffb
mov dword [ebp - 0x98], ebx
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x5024f1
inc edx
mov ecx, dword [ebp - 0x44]
mov eax, ecx
cmp edx, 0x1000
jb 0x5024e7
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x502914
push edx
push ecx
call fcn.005603ff
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp byte [ebp - 0x91], 0
je 0x502514
mov eax, dword [esi + 0x28]
mov dword [0x6b1a78], eax
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x50253a
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x502536
cmp esi, dword [eax + 8]
jne 0x502536
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x502526
mov esi, eax
jmp 0x502550
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x502550
mov esi, ecx
mov eax, dword [ecx]
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x502544
cmp esi, dword [0x6b1a7c]
jne 0x502455
cmp dword [0x6b1a78], 0
jne 0x5025a3
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x5028dc
inc edx
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
cmp edx, 0x1000
jb 0x5028d2
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x502919
jmp 0x5028d2
mov ecx, dword [0x6b1a78]
test ecx, ecx
je 0x5025ea
lea eax, [ebp - 0x44]
push eax
call fcn.00436000
mov byte [ebp - 4], 4
or ebx, 1
mov dword [ebp - 0x98], ebx
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x5025cd
mov ecx, dword [eax]
push 4
push str..bin
mov edx, dword [eax + 0x10]
call fcn.00464160
add esp, 8
test al, al
mov byte [ebp - 0x91], 1
jne 0x5025f1
mov byte [ebp - 0x91], 0
mov dword [ebp - 4], 2
test bl, 1
je 0x50264c
and ebx, 0xfffffffe
mov dword [ebp - 0x98], ebx
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x50263a
inc edx
mov ecx, dword [ebp - 0x44]
mov eax, ecx
cmp edx, 0x1000
jb 0x502630
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50291e
push edx
push ecx
call fcn.005603ff
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp byte [ebp - 0x91], 0
je 0x502693
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x5028dc
inc edx
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
cmp edx, 0x1000
jb 0x5028d2
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x502923
jmp 0x5028d2
mov ebx, dword [ebp - 0xa4]
mov ebx, dword [ebx + 0x904]
xorps xmm0, xmm0
movlpd qword [ebp - 0xb0], xmm0
mov dword [ebp - 0xa0], 0
mov eax, dword [ebx]
push 0
lea ecx, [ebp - 0x90]
push ecx
push ebx
call dword [eax + 0x30]
test eax, eax
jne 0x5028a5
cmp dword [ebp - 0x84], eax
jb 0x5026ea
ja 0x5026e3
mov esi, dword [ebp - 0x88]
cmp esi, 0x500000
jbe 0x5026f0
mov esi, 0x500000
jmp 0x5026f0
mov esi, dword [ebp - 0x88]
push esi
call fcn.00560596
add esp, 4
mov edi, eax
mov dword [ebp - 0x9c], edi
mov ecx, dword [ebx]
push 0
push 0
push dword [ebp - 0xac]
push dword [ebp - 0xb0]
push ebx
call dword [ecx + 0x14]
mov eax, dword [ebx]
lea ecx, [ebp - 0xa0]
push ecx
push esi
push edi
push ebx
call dword [eax + 0xc]
test eax, eax
jne 0x50289c
mov byte [ebp - 4], 5
push dword [ebp - 0xa0]
push edi
call fcn.00462c30
mov dword [ebp - 4], 2
mov ecx, dword [0x6b1a78]
test ecx, ecx
je 0x50289c
lea eax, [ebp - 0x44]
push eax
call fcn.00436000
mov byte [ebp - 4], 7
cmp dword [ebp - 0x34], 0
je 0x50283d
push ecx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.004e2c10
cmp eax, 0xffffffff
jne 0x50283d
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 0x10
cmovae eax, dword [ebp - 0x44]
push 0
push eax
push 0x434
mov ecx, dword [ebp - 0xa4]
call dword [sym.imp.ycomuiu.dll_public:_long_int___thiscall_DuiLib::CWindowWnd::SendMessageW_unsigned_int__unsigned_int__long_int_]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x5027d7
inc edx
mov ecx, dword [ebp - 0x44]
mov eax, ecx
cmp edx, 0x1000
jb 0x5027cd
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x502928
push edx
push ecx
call fcn.005603ff
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x502824
inc edx
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
cmp edx, 0x1000
jb 0x50281a
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50292d
push edx
push ecx
call fcn.005603ff
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
xor eax, eax
jmp 0x5028f3
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x502875
inc edx
mov ecx, dword [ebp - 0x44]
mov eax, ecx
cmp edx, 0x1000
jb 0x50286b
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x502932
push edx
push ecx
call fcn.005603ff
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
jmp 0x50289c
push edi
call fcn.00560591
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x5028dc
inc edx
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
cmp edx, 0x1000
jb 0x5028d2
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x502937
push edx
push ecx
call fcn.005603ff
add esp, 8
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret
call fcn.005a5046
call fcn.005a5046
call fcn.005a5046
call fcn.005a5046
call fcn.005a5046
call fcn.005a5046
call fcn.005a5046
call fcn.005a5046
call fcn.005a5046
int3