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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x606b2a
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
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 [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
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 0x4ac9dc
lea ebx, [eax + 7]
push str.Download
lea eax, [esp + 0x24]
call fcn.004037a0
xor ebx, ebx
jmp 0x4ac9f4
cmp eax, 2
lea edi, [esp + 0x20]
mov edx, str.Upload
je 0x4ac9ef
mov edx, str.Synchronize
call fcn.00403760
mov eax, dword [esp + 0x20]
push eax
push str.CCellDictListSyncModule::Start_tOption_:__s
mov ecx, esi
call fcn.004c6880
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.004b0630
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.004b0630
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.004b0630
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.004b0630
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 0x4acb0a
lea edx, [eax - 1]
test edx, edx
jl 0x4acb92
cmp edx, eax
jg 0x4acb92
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x4acb0a
push 1
push 0x62454c
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040aee0
push 0xd
push str.cdictlist.ini
lea edx, [esp + 0x1c]
push edx
call fcn.0040aee0
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 0x4acb62
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4acb92
cmp ecx, eax
jg 0x4acb92
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4acb62
push 1
push 0x62454c
lea ecx, [esp + 0x20]
push ecx
call fcn.0040aee0
push 0xd
push str.cdictlist.ini
lea edx, [esp + 0x20]
push edx
call fcn.0040aee0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4acb9c
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4ace4d
push 0x80070057
call fcn.00403650
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
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 0x4acbdf
mov eax, edx
lea ebx, [eax + 2]
jmp 0x4acbd0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4acbd0
sub eax, ebx
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x38]
call fcn.004037a0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4acc02
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x34]
push ecx
push 0
push 0x6291fc
push str.Properties
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esp + 0x24], eax
push 0x6244e0
xor ebx, ebx
lea eax, [esp + 0x38]
call fcn.004037a0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4acc40
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x38], ebx
cmp dword [esp + 0x24], 0
jne 0x4acc68
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov ebx, esp
call fcn.0040a210
mov ecx, dword [esp + 0x20]
add eax, 0x10
mov dword [ebx], eax
call fcn.004ad900
mov eax, dword [esp + 0x14]
push 0
push edi
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov ebx, esp
call fcn.0040a210
add eax, 0x10
mov dword [ebx], eax
call fcn.004adbe0
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.0040a210
add eax, 0x10
mov dword [ebx], eax
call fcn.004adbe0
mov eax, dword [esp + 0x14]
push 2
push esi
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.0040a210
add eax, 0x10
mov dword [esi], eax
call fcn.004adbe0
mov eax, dword [esp + 0x18]
push 0
push ebp
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.0040a210
add eax, 0x10
mov dword [esi], eax
call fcn.004adbe0
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 0x4acd1f
cmp ebx, edi
je 0x4acd24
call fcn.005d29f1
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x30], edx
je 0x4ace3a
test esi, esi
mov eax, dword [ebp + 4]
mov dword [esp + 0x48], eax
je 0x4acd41
cmp esi, ebp
je 0x4acd46
call fcn.005d29f1
mov ecx, dword [esp + 0x48]
cmp dword [esp + 0x28], ecx
je 0x4ace3a
test ebx, ebx
jne 0x4acd5d
call fcn.005d29f1
mov edx, dword [esp + 0x30]
cmp edx, dword [ebx + 4]
jne 0x4acd6b
call fcn.005d29f1
test esi, esi
jne 0x4acd74
call fcn.005d29f1
mov eax, dword [esp + 0x28]
cmp eax, dword [esi + 4]
jne 0x4acd82
call fcn.005d29f1
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
je 0x4ace30
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x1c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4acdbe
test dx, dx
je 0x4acdba
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4acdbe
add eax, 4
add ecx, 4
test dx, dx
jne 0x4acd98
xor eax, eax
jmp 0x4acdc3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jge 0x4acddd
lea esi, [esp + 0x2c]
call fcn.004b0ba0
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
jmp 0x4acd10
jle 0x4acdf1
lea esi, [esp + 0x24]
call fcn.004b0ba0
mov esi, dword [esp + 0x24]
jmp 0x4acd10
mov eax, dword [esp + 0x30]
push eax
push ebx
lea ecx, [esp + 0x54]
push ecx
push edi
call fcn.004aff00
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.004aff00
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], edx
mov esi, edx
jmp 0x4acd09
push 0x80004005
call fcn.00403650
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x6c], 2
call fcn.0050ea80
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov edx, dword [0x677600]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
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.0040ac80
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 0x4acebd
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 0x4acee2
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 0x4acf07
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 0x4acf2f
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