Function at 0x4b1940
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60bb30
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push str.CCfgCustomSync::OnDownLoadAllComplete
mov ecx, esi
call fcn.004c6880
mov edx, dword [esi + 0x74]
mov eax, dword [edx - 0xc]
add esp, 4
test eax, eax
je 0x4b19ae
mov ecx, dword [esi + 0x40]
push esi
call fcn.004b1ef0
test eax, eax
je 0x4b19ae
mov edi, 1
cmp dword [esi + 0x30], edi
jne 0x4b19da
mov ecx, dword [esi + 0x40]
push esi
call fcn.004b20d0
mov dword [esi + 0x64], edi
push str.CCfgCustomSync::OnDownLoadAllComplete___DownLoad_Skin_Pack_OK_And_Cover_Local_Skin
jmp 0x4b19d0
cmp dword [esi + 0x30], 1
jne 0x4b19da
mov eax, dword [esi + 0x74]
mov dword [esi + 0x64], 1
cmp dword [eax - 0xc], 0
jne 0x4b19cb
push str.CCfgCustomSync::OnDownLoadAllComplete___DownLoad_Skin_Pack_Error__SkinPack_Is_Empty
jmp 0x4b19d0
push str.CCfgCustomSync::OnDownLoadAllComplete___DownLoad_Skin_Pack_OK__ExtractSkinPack_Error
mov ecx, esi
call fcn.004c6880
add esp, 4
mov edi, dword [esi + 0x6c]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x4b1c08
test edi, edi
mov ebx, dword [esi + 0x3c]
je 0x4b1c08
test ebx, ebx
je 0x4b1c08
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x46534353
push ebx
push edi
call fcn.004b3910
test eax, eax
je 0x4b1c08
mov ebx, dword [esi + 0x3c]
lea edi, [esi + 0x50]
mov eax, edi
call fcn.004bec50
push edi
push ebx
call fcn.004bce10
test eax, eax
mov eax, dword [esi + 0x30]
je 0x4b1b30
cmp eax, 1
jne 0x4b1a5c
mov eax, esi
call fcn.004b2a60
push str.CCfgCustomSync::OnDownLoadAllComplete___DownLoad_CfgInfo_OK_And_Cover_Local_Config_Set
mov ecx, esi
mov dword [esi + 0x60], 1
call fcn.004c6880
add esp, 4
jmp 0x4b1d35
cmp eax, 2
jne 0x4b1b08
lea edi, [esi + 0x1c]
lea ecx, [esp + 0x10]
push edi
push ecx
mov ebx, str.CfgUpload.dat
call fcn.0040aab0
add esp, 8
mov dword [esp + 0x28], 0
mov edx, dword [esp + 0x10]
push edx
mov ecx, esi
call fcn.004b2d40
lea eax, [esp + 0xc]
push edi
push eax
mov ebx, str.SkinUpload.dat
call fcn.0040aab0
add esp, 8
mov byte [esp + 0x28], 1
mov ecx, dword [esp + 0xc]
push ecx
push esi
call fcn.004b2ee0
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.004c6880
add esp, 4
lea ecx, [esp + 0xc]
call fcn.00403870
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00403870
jmp 0x4b1d35
cmp eax, 3
jne 0x4b1d35
mov ebx, esi
call fcn.004b2c70
test eax, eax
jne 0x4b1d35
mov eax, 1
mov dword [esi + 0x64], eax
mov dword [esi + 0x60], eax
jmp 0x4b1d35
cmp eax, 1
jne 0x4b1b4c
push str.CCfgCustomSync::OnDownLoadAllComplete___DownLoad_CfgInfo_OK_And_Config_Is_Error
mov ecx, esi
mov dword [esi + 0x60], eax
call fcn.004c6880
add esp, 4
jmp 0x4b1d35
cmp eax, 2
je 0x4b1b5a
cmp eax, 3
jne 0x4b1d35
mov eax, dword [esi + 0x3c]
push eax
mov eax, esi
call fcn.004b2d20
lea edi, [esi + 0x1c]
lea ecx, [esp + 0xc]
push edi
push ecx
mov ebx, str.CfgUpload.dat
call fcn.0040aab0
add esp, 8
mov dword [esp + 0x28], 2
mov edx, dword [esp + 0xc]
push edx
mov ecx, esi
call fcn.004b2d40
lea eax, [esp + 0x10]
push edi
push eax
mov ebx, str.SkinUpload.dat
call fcn.0040aab0
add esp, 8
mov byte [esp + 0x28], 3
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.004b2ee0
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.004c6880
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00403870
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00403870
jmp 0x4b1d35
mov eax, dword [esi + 0x30]
cmp eax, 1
jne 0x4b1c42
mov ecx, dword [esi + 0x6c]
mov dword [esi + 0x60], eax
cmp dword [ecx - 0xc], 0
mov ecx, esi
jne 0x4b1c30
push str.CCfgCustomSync::OnDownLoadAllComplete___DownLoad_Config_File_Error__Config_File_Is_Empty
call fcn.004c6880
add esp, 4
jmp 0x4b1d35
push str.CCfgCustomSync::OnDownLoadAllComplete___DownLoad_Skin_Pack_OK__Config_File_Error
call fcn.004c6880
add esp, 4
jmp 0x4b1d35
cmp eax, 2
je 0x4b1c50
cmp eax, 3
jne 0x4b1d35
mov ebx, dword [esi + 0x3c]
lea edi, [esi + 0x50]
mov eax, edi
call fcn.004bec50
push edi
push ebx
call fcn.004bce10
lea edi, [esi + 0x1c]
lea edx, [esp + 0x18]
push edi
push edx
mov ebx, str.CfgUpload.dat
call fcn.0040aab0
add esp, 8
mov dword [esp + 0x28], 4
mov eax, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.004b2d40
lea ecx, [esp + 0x14]
push edi
push ecx
mov ebx, str.SkinUpload.dat
call fcn.0040aab0
add esp, 8
mov byte [esp + 0x28], 5
mov edx, dword [esp + 0x14]
push edx
push esi
call fcn.004b2ee0
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.004c6880
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 0x4b1d0d
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 0x4b1d35
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 0x4b1d63
cmp dword [esi + 0x70], 0
je 0x4b1d63
cmp dword [esi + 0x68], 0
je 0x4b1d63
cmp dword [esi + 0x5c], 0
je 0x4b1d63
push str.CCfgCustomSync::OnDownLoadAllComplete___SM_STATE_AMBIGUOUS__Sync_CfgInfo
mov ecx, esi
mov dword [esi + 0x24], eax
call fcn.004c6880
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