Function at 0x546540
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x729210
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x7db1e8]
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 eax, dword [0x738150]
movq xmm0, qword [str.Foxmail.Addins]
mov dword [ebp - 0x24], eax
mov ax, word [0x738154]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0xe
movq qword [ebp - 0x2c], xmm0
mov word [ebp - 0x20], ax
mov byte [ebp - 0x1e], 0
push 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push 0x400
push eax
call fcn.00555fc0
add esp, 4
lea ecx, [ebp - 0x110]
push eax
call fcn.00552eb0
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x546602
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5465f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x546c66
push edx
push ecx
call fcn.006f4b9f
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
push eax
call fcn.0054d730
add esp, 4
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x44], 0x54534f50
mov byte [ebp - 0x40], 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.00535d10
mov edx, dword [ebp - 0x30]
test eax, eax
mov byte [ebp - 4], 4
sete bl
cmp edx, 0x10
jb 0x546694
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x54668a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x546c6b
push edx
push ecx
call fcn.006f4b9f
add esp, 8
test bl, bl
je 0x546733
mov eax, dword [ebp - 0x110]
lea ecx, [ebp - 0x110]
call dword [eax + 0x34]
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xc4], 3
push str.TCoremailOrganizationClient::LoadSyncInfo_hRequect_is_NULL
push eax
call fcn.004cb4e0
add esp, 8
push eax
call fcn.004cbd50
mov edx, dword [ebp - 0x18]
add esp, 4
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x54670a
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x546700
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x546c84
push edx
push ecx
call fcn.006f4b9f
add esp, 8
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00553780
mov dword [ebp - 4], 6
jmp 0x546a97
push 0
push 0
push 0
push 0
push 0
mov ecx, edi
call fcn.00536140
test eax, eax
jne 0x546803
mov ecx, edi
call fcn.00534eb0
mov eax, dword [ebp - 0x110]
lea ecx, [ebp - 0x110]
call dword [eax + 0x34]
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xc4], 3
push str.TCoremailOrganizationClient::LoadSyncInfo_send_request_failed_
push eax
call fcn.004cb4e0
add esp, 8
lea ecx, [edi + 8]
cmp dword [edi + 0x1c], 0x10
jb 0x54678c
mov ecx, dword [edi + 8]
push dword [edi + 0x18]
push ecx
push eax
call fcn.004cba60
add esp, 0xc
push eax
call fcn.004cbd50
mov edx, dword [ebp - 0x18]
add esp, 4
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x5467da
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5467d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x546c84
push edx
push ecx
call fcn.006f4b9f
add esp, 8
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00553780
mov dword [ebp - 4], 7
jmp 0x546a97
call fcn.004d2dc0
mov ecx, eax
test ecx, ecx
je 0x546c70
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 9
push eax
call fcn.00515d70
add esp, 4
push str.LoadSyncInfotmp
push eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0xa
push eax
call fcn.00506c90
add esp, 0xc
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xc
call fcn.004ccb20
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push ecx
push eax
mov ecx, edi
call fcn.00535f90
mov ecx, edi
test eax, eax
jne 0x546964
call fcn.00534eb0
mov eax, dword [ebp - 0x110]
lea ecx, [ebp - 0x110]
call dword [eax + 0x34]
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xc4], 3
push str.TCoremailOrganizationClient::LoadSyncInfo_read_file_failed_
push eax
call fcn.004cb4e0
add esp, 8
lea ecx, [edi + 8]
cmp dword [edi + 0x1c], 0x10
jb 0x5468b5
mov ecx, dword [edi + 8]
push dword [edi + 0x18]
push ecx
push eax
call fcn.004cba60
add esp, 0xc
push eax
call fcn.004cbd50
add esp, 4
lea ecx, [ebp - 0x5c]
call fcn.004ccb20
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 8
test eax, eax
je 0x5468e4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x64]
or eax, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x546903
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x54693b
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x546931
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x546c84
push edx
push ecx
call fcn.006f4b9f
add esp, 8
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00553780
mov dword [ebp - 4], 0xd
jmp 0x546a97
call fcn.00534eb0
call fcn.004d2dc0
mov ecx, eax
test ecx, ecx
je 0x546c7a
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x68], esi
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x54699b
mov dword [ebp - 0x60], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0x60]
mov ecx, edi
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00535cc0
test eax, eax
jne 0x546ab5
mov eax, dword [ebp - 0x110]
lea ecx, [ebp - 0x110]
call dword [eax + 0x34]
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xc4], 3
push str.TCoremailOrganizationClient::LoadSyncInfo_load_xml_failed
push eax
call fcn.004cb4e0
add esp, 8
push eax
call fcn.004cbd50
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0xc
or esi, 0xffffffff
add esp, 4
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x546a06
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x5c]
call fcn.004ccb20
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 8
test eax, eax
je 0x546a1f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x64]
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x546a3b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x546a73
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x546a69
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x546c84
push edx
push ecx
call fcn.006f4b9f
add esp, 8
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00553780
mov dword [ebp - 4], 0xf
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], vtable.std::ios_base.0
push eax
call fcn.006f3999
add esp, 4
jmp 0x546bc2
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x546af8
mov eax, dword [ebp - 0x110]
lea ecx, [ebp - 0x110]
call dword [eax + 0x34]
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xc4], 3
push str.TCoremailOrganizationClient::LoadSyncInfo_Delete_xml_failed
push eax
call fcn.004cb4e0
add esp, 8
push eax
call fcn.004cbd50
add esp, 4
lea eax, [edi + 0x210]
mov ecx, edi
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00545040
test eax, eax
jne 0x546be0
mov eax, dword [ebp - 0x110]
lea ecx, [ebp - 0x110]
call dword [eax + 0x34]
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xc4], 3
push str.TCoremailOrganizationClient::LoadSyncInfo_Extract_Sync_File_failed
push eax
call fcn.004cb4e0
add esp, 8
push eax
call fcn.004cbd50
add esp, 4
lea ecx, [ebp - 0x68]
call fcn.004cc9f0
lea ecx, [ebp - 0x5c]
call fcn.004ccb20
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 8
test eax, eax
je 0x546b69
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x64]
call fcn.004cc9f0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x546ba5
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x546b9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x546c84
push edx
push ecx
call fcn.006f4b9f
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x110]
call fcn.004cd070
xor eax, eax
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.006f4db8
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x68]
call fcn.004cc9f0
lea ecx, [ebp - 0x5c]
call fcn.004ccb20
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 8
test eax, eax
je 0x546c01
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x64]
call fcn.004cc9f0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x546c39
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x546c2f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x546c84
push edx
push ecx
call fcn.006f4b9f
add esp, 8
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004cd070
mov eax, 1
jmp 0x546bc4
call fcn.006fb96e
call fcn.006fb96e
push 0x80004005
call fcn.004cf5d0
push 0x80004005
call fcn.004cf5d0
call fcn.006fb96e
int3