Function at 0x49cdf0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ad0f0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push str.CCfgCustomSync::OnDownLoadAllComplete
mov ecx, esi
call fcn.004aee70
mov edx, dword [esi + 0x74]
mov eax, dword [edx - 0xc]
add esp, 4
test eax, eax
je 0x49ce5e
mov ecx, dword [esi + 0x40]
push esi
call fcn.0049d3a0
test eax, eax
je 0x49ce5e
mov edi, 1
cmp dword [esi + 0x30], edi
jne 0x49ce8a
mov ecx, dword [esi + 0x40]
push esi
call fcn.0049d530
mov dword [esi + 0x64], edi
push str.CCfgCustomSync::OnDownLoadAllComplete___DownLoad_Skin_Pack_OK_And_Cover_Local_Skin
jmp 0x49ce80
cmp dword [esi + 0x30], 1
jne 0x49ce8a
mov eax, dword [esi + 0x74]
mov dword [esi + 0x64], 1
cmp dword [eax - 0xc], 0
jne 0x49ce7b
push str.CCfgCustomSync::OnDownLoadAllComplete___DownLoad_Skin_Pack_Error__SkinPack_Is_Empty
jmp 0x49ce80
push str.CCfgCustomSync::OnDownLoadAllComplete___DownLoad_Skin_Pack_OK__ExtractSkinPack_Error
mov ecx, esi
call fcn.004aee70
add esp, 4
mov edi, dword [esi + 0x6c]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x49d0b8
test edi, edi
mov ebx, dword [esi + 0x3c]
je 0x49d0b8
test ebx, ebx
je 0x49d0b8
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x46534353
push ebx
push edi
call fcn.0049ece0
test eax, eax
je 0x49d0b8
mov ebx, dword [esi + 0x3c]
lea edi, [esi + 0x50]
mov eax, edi
call fcn.004a7ab0
push edi
push ebx
call fcn.004a5c70
test eax, eax
mov eax, dword [esi + 0x30]
je 0x49cfe0
cmp eax, 1
jne 0x49cf0c
mov eax, esi
call fcn.0049dec0
push str.CCfgCustomSync::OnDownLoadAllComplete___DownLoad_CfgInfo_OK_And_Cover_Local_Config_Set
mov ecx, esi
mov dword [esi + 0x60], 1
call fcn.004aee70
add esp, 4
jmp 0x49d1e5
cmp eax, 2
jne 0x49cfb8
lea edi, [esi + 0x1c]
lea ecx, [esp + 0x10]
push edi
push ecx
mov ebx, str.CfgUpload.dat
call fcn.00412480
add esp, 8
mov dword [esp + 0x28], 0
mov edx, dword [esp + 0x10]
push edx
mov ecx, esi
call fcn.0049e110
lea eax, [esp + 0xc]
push edi
push eax
mov ebx, str.SkinUpload.dat
call fcn.00412480
add esp, 8
mov byte [esp + 0x28], 1
mov ecx, dword [esp + 0xc]
push ecx
push esi
call fcn.0049e270
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
push edi
push eax
mov eax, dword [edx + 0x10]
push esi
call eax
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
push edi
push eax
mov eax, dword [edx + 0x10]
push esi
call eax
push str.CCfgCustomSync::OnDownLoadAllComplete__ExtractCfgFile_And_LoadCfgData_Successed___Start_UpLoad
mov ecx, esi
call fcn.004aee70
add esp, 4
lea ecx, [esp + 0xc]
call fcn.00404510
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00404510
jmp 0x49d1e5
cmp eax, 3
jne 0x49d1e5
mov ebx, esi
call fcn.0049e070
test eax, eax
jne 0x49d1e5
mov eax, 1
mov dword [esi + 0x64], eax
mov dword [esi + 0x60], eax
jmp 0x49d1e5
cmp eax, 1
jne 0x49cffc
push str.CCfgCustomSync::OnDownLoadAllComplete___DownLoad_CfgInfo_OK_And_Config_Is_Error
mov ecx, esi
mov dword [esi + 0x60], eax
call fcn.004aee70
add esp, 4
jmp 0x49d1e5
cmp eax, 2
je 0x49d00a
cmp eax, 3
jne 0x49d1e5
mov eax, dword [esi + 0x3c]
push eax
mov eax, esi
call fcn.0049e0f0
lea edi, [esi + 0x1c]
lea ecx, [esp + 0xc]
push edi
push ecx
mov ebx, str.CfgUpload.dat
call fcn.00412480
add esp, 8
mov dword [esp + 0x28], 2
mov edx, dword [esp + 0xc]
push edx
mov ecx, esi
call fcn.0049e110
lea eax, [esp + 0x10]
push edi
push eax
mov ebx, str.SkinUpload.dat
call fcn.00412480
add esp, 8
mov byte [esp + 0x28], 3
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.0049e270
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
push edi
push eax
mov eax, dword [edx + 0x10]
push esi
call eax
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
push edi
push eax
mov eax, dword [edx + 0x10]
push esi
call eax
push str.CCfgCustomSync::OnDownLoadAllComplete__ExtractCfgFile_Successed___LoadCfgData_Error___Start_UpLoad
mov ecx, esi
call fcn.004aee70
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00404510
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00404510
jmp 0x49d1e5
mov eax, dword [esi + 0x30]
cmp eax, 1
jne 0x49d0f2
mov ecx, dword [esi + 0x6c]
mov dword [esi + 0x60], eax
cmp dword [ecx - 0xc], 0
mov ecx, esi
jne 0x49d0e0
push str.CCfgCustomSync::OnDownLoadAllComplete___DownLoad_Config_File_Error__Config_File_Is_Empty
call fcn.004aee70
add esp, 4
jmp 0x49d1e5
push str.CCfgCustomSync::OnDownLoadAllComplete___DownLoad_Skin_Pack_OK__Config_File_Error
call fcn.004aee70
add esp, 4
jmp 0x49d1e5
cmp eax, 2
je 0x49d100
cmp eax, 3
jne 0x49d1e5
mov ebx, dword [esi + 0x3c]
lea edi, [esi + 0x50]
mov eax, edi
call fcn.004a7ab0
push edi
push ebx
call fcn.004a5c70
lea edi, [esi + 0x1c]
lea edx, [esp + 0x18]
push edi
push edx
mov ebx, str.CfgUpload.dat
call fcn.00412480
add esp, 8
mov dword [esp + 0x28], 4
mov eax, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.0049e110
lea ecx, [esp + 0x14]
push edi
push ecx
mov ebx, str.SkinUpload.dat
call fcn.00412480
add esp, 8
mov byte [esp + 0x28], 5
mov edx, dword [esp + 0x14]
push edx
push esi
call fcn.0049e270
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
push edi
push eax
mov eax, dword [edx + 0x10]
push esi
call eax
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
push edi
push eax
mov eax, dword [edx + 0x10]
push esi
call eax
push str.CCfgCustomSync::OnDownLoadAllComplete__ExtractCfgFile_Error_And_Start_UpLoad
mov ecx, esi
call fcn.004aee70
mov byte [esp + 0x2c], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d1bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
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 0x49d1e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
cmp dword [esi + 0x30], eax
jne 0x49d213
cmp dword [esi + 0x70], 0
je 0x49d213
cmp dword [esi + 0x68], 0
je 0x49d213
cmp dword [esi + 0x5c], 0
je 0x49d213
push str.CCfgCustomSync::OnDownLoadAllComplete___SM_STATE_AMBIGUOUS__Sync_CfgInfo
mov ecx, esi
mov dword [esi + 0x24], eax
call fcn.004aee70
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret