Function at 0x497cf0
Capabilities:
Check if file exists
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a897a
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
xor ebx, ebx
mov dword [esp + 0x68], ebx
mov eax, dword [esi + 0x10]
cmp eax, 1
jne 0x497d5c
lea ebx, [eax + 7]
push str.Download
lea eax, [esp + 0x24]
call fcn.00404050
xor ebx, ebx
jmp 0x497d74
cmp eax, 2
lea edi, [esp + 0x20]
mov edx, str.Upload
je 0x497d6f
mov edx, str.Synchronize
call fcn.004040f0
mov eax, dword [esp + 0x20]
push eax
push str.CCellDictListSyncModule::Start_tOption_:__s
mov ecx, esi
call fcn.004aee70
fldz
fstp dword [esi + 0xc]
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 8], 2
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx + 4]
lea edi, [esi + 0x2c]
add esp, 8
push edx
mov ecx, edi
call fcn.0049b9d0
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ebx
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + 4]
lea ebp, [esi + 0x38]
push ecx
mov ecx, ebp
call fcn.0049b9d0
mov eax, dword [ebp + 4]
mov dword [eax + 4], eax
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov dword [eax], eax
mov eax, dword [ebp + 4]
mov dword [eax + 8], eax
mov edx, dword [esi + 0x48]
mov eax, dword [edx + 4]
add esi, 0x44
push eax
mov ecx, esi
call fcn.0049b9d0
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov ecx, dword [ebx + 0x54]
mov edx, dword [ecx + 4]
add ebx, 0x50
push edx
mov ecx, ebx
call fcn.0049b9d0
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 8], 0
mov dword [eax], eax
mov ebx, dword [ebx + 4]
mov dword [ebx + 8], ebx
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push 1
lea edx, [esp + 0x18]
push edx
call eax
mov byte [esp + 0x68], 1
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x497e8a
lea edx, [eax - 1]
test edx, edx
jl 0x497f12
cmp edx, eax
jg 0x497f12
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x497e8a
push 1
push 0x5bd0e8
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403fc0
push 0xd
push str.cdictlist.ini
lea edx, [esp + 0x1c]
push edx
call fcn.00403fc0
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push 3
lea edx, [esp + 0x1c]
push edx
call eax
mov byte [esp + 0x68], 2
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x497ee2
lea ecx, [eax - 1]
test ecx, ecx
jl 0x497f12
cmp ecx, eax
jg 0x497f12
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x497ee2
push 1
push 0x5bd0e8
lea ecx, [esp + 0x20]
push ecx
call fcn.00403fc0
push 0xd
push str.cdictlist.ini
lea edx, [esp + 0x20]
push edx
call fcn.00403fc0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x497f1c
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4981cd
push 0x80070057
call fcn.00404550
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov byte [esp + 0x68], 5
mov edx, dword [esp + 0x14]
cmp edx, eax
je 0x497f5f
mov eax, edx
lea ebx, [eax + 2]
jmp 0x497f50
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x497f50
sub eax, ebx
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x38]
call fcn.00404050
mov eax, dword [esp + 0x38]
test eax, eax
je 0x497f82
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x34]
push ecx
push 0
push str.Version
push str.Properties
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esp + 0x24], eax
push 0x5bcc3c
xor ebx, ebx
lea eax, [esp + 0x38]
call fcn.00404050
mov eax, dword [esp + 0x38]
test eax, eax
je 0x497fc0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x38], ebx
cmp dword [esp + 0x24], 0
jne 0x497fe8
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov ebx, esp
call fcn.00403ce0
mov ecx, dword [esp + 0x20]
add eax, 0x10
mov dword [ebx], eax
call fcn.00498c80
mov eax, dword [esp + 0x14]
push 0
push edi
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov ebx, esp
call fcn.00403ce0
add eax, 0x10
mov dword [ebx], eax
call fcn.00498f60
mov eax, dword [esp + 0x1c]
add eax, 0x50
push 1
push eax
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov ebx, esp
call fcn.00403ce0
add eax, 0x10
mov dword [ebx], eax
call fcn.00498f60
mov eax, dword [esp + 0x14]
push 2
push esi
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.00403ce0
add eax, 0x10
mov dword [esi], eax
call fcn.00498f60
mov eax, dword [esp + 0x18]
push 0
push ebp
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.00403ce0
add eax, 0x10
mov dword [esi], eax
call fcn.00498f60
mov eax, dword [edi + 4]
mov edx, dword [eax]
mov eax, dword [ebp + 4]
mov eax, dword [eax]
mov ebx, edi
mov esi, ebp
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
lea ecx, [ecx]
test ebx, ebx
mov ecx, dword [edi + 4]
mov dword [esp + 0x40], ecx
je 0x49809f
cmp ebx, edi
je 0x4980a4
call fcn.00578ff3
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x30], edx
je 0x4981ba
test esi, esi
mov eax, dword [ebp + 4]
mov dword [esp + 0x48], eax
je 0x4980c1
cmp esi, ebp
je 0x4980c6
call fcn.00578ff3
mov ecx, dword [esp + 0x48]
cmp dword [esp + 0x28], ecx
je 0x4981ba
test ebx, ebx
jne 0x4980dd
call fcn.00578ff3
mov edx, dword [esp + 0x30]
cmp edx, dword [ebx + 4]
jne 0x4980eb
call fcn.00578ff3
test esi, esi
jne 0x4980f4
call fcn.00578ff3
mov eax, dword [esp + 0x28]
cmp eax, dword [esi + 4]
jne 0x498102
call fcn.00578ff3
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
je 0x4981b0
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x1c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49813e
test dx, dx
je 0x49813a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49813e
add eax, 4
add ecx, 4
test dx, dx
jne 0x498118
xor eax, eax
jmp 0x498143
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jge 0x49815d
lea esi, [esp + 0x2c]
call fcn.0045a450
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
jmp 0x498090
jle 0x498171
lea esi, [esp + 0x24]
call fcn.0045a450
mov esi, dword [esp + 0x24]
jmp 0x498090
mov eax, dword [esp + 0x30]
push eax
push ebx
lea ecx, [esp + 0x54]
push ecx
push edi
call fcn.0049b2a0
mov ebx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x28]
push eax
push esi
lea ecx, [esp + 0x5c]
push ecx
push ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edx
call fcn.0049b2a0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], edx
mov esi, edx
jmp 0x498089
push 0x80004005
call fcn.00404550
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x6c], 2
call fcn.004d0e80
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov edx, dword [0x5fcd20]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push str.cdictlist.ini
push esi
push str.__u__s
lea edi, [esp + 0x28]
mov byte [esp + 0x74], 6
call fcn.004126f0
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
add esp, 0xc
push esi
push ebx
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x68], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49823d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498262
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498287
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x68], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4982af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret