Function at 0x4dfa70
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x606580
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
xor esi, esi
mov dword [esp + 0x60], esi
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x4dfad6
push str.Download
lea ebx, [esi + 8]
lea eax, [esp + 0x24]
call fcn.004037a0
jmp 0x4dfaee
cmp eax, 2
lea edi, [esp + 0x20]
mov edx, str.Upload
je 0x4dfae9
mov edx, str.Synchronize
call fcn.00403760
mov eax, dword [esp + 0x20]
push eax
push str.CUsrEngSyncModule::Start_tOption_:__s
mov ecx, ebp
call fcn.004c6880
fldz
fstp dword [ebp + 0xc]
mov dword [ebp + 0x14], 0xffffffff
mov dword [ebp + 8], 2
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 4]
lea edi, [ebp + 0x28]
add esp, 8
push edx
mov ecx, edi
call fcn.004e2490
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], esi
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + 4]
lea ebx, [ebp + 0x34]
push ecx
mov ecx, ebx
call fcn.004e2490
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 8], eax
mov ecx, dword [ebp + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push 1
lea eax, [esp + 0x20]
push eax
call edx
mov byte [esp + 0x60], 1
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
cmp eax, esi
jle 0x4dfbae
lea edx, [eax - 1]
cmp edx, esi
jl 0x4dfd34
cmp edx, eax
jg 0x4dfd34
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x4dfbae
push 1
push 0x62454c
lea eax, [esp + 0x24]
push eax
call fcn.0040aee0
push 0xb
push 0x62573c
lea ecx, [esp + 0x24]
push ecx
call fcn.0040aee0
mov ecx, dword [ebp + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push 3
lea eax, [esp + 0x1c]
push eax
call edx
mov byte [esp + 0x60], 2
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
cmp eax, esi
jle 0x4dfc0e
lea ecx, [eax - 1]
cmp ecx, esi
jl 0x4dfd34
cmp ecx, eax
jg 0x4dfd34
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4dfc0e
push 1
push 0x62454c
lea eax, [esp + 0x20]
push eax
call fcn.0040aee0
push 0xb
push 0x62573c
lea ecx, [esp + 0x20]
push ecx
call fcn.0040aee0
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4dfd3e
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
mov esi, eax
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
push 0x62573c
push esi
push str.__u__s
lea edi, [esp + 0x30]
mov byte [esp + 0x6c], 3
call fcn.0040ac80
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
add esp, 0xc
push esi
push ebp
call edx
lea eax, [esi - 0x10]
mov byte [esp + 0x60], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4dfcac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 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 0x4dfcd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4dfcf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x60], 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 0x4dfd1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403650
mov eax, dword [esp + 0x1c]
push edi
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.0040a210
add eax, 0x10
mov dword [esi], eax
call fcn.004e0af0
mov eax, dword [esp + 0x18]
push ebx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.0040a210
add eax, 0x10
mov dword [esi], eax
call fcn.004e0af0
mov eax, dword [edi + 4]
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov esi, edi
mov dword [esp + 0x2c], esi
lea esp, [esp]
test esi, esi
mov edx, dword [edi + 4]
mov dword [esp + 0x28], edx
je 0x4dfd9f
cmp esi, edi
je 0x4dfda4
call fcn.005d29f1
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x30], eax
je 0x4dfdf6
test esi, esi
jne 0x4dfdb7
call fcn.005d29f1
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esi + 4]
jne 0x4dfdc5
call fcn.005d29f1
mov eax, dword [esp + 0x30]
cmp dword [eax + 0x18], 1
jne 0x4dfde7
push eax
push esi
lea edx, [esp + 0x44]
push edx
push edi
call fcn.004e1d40
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
jmp 0x4dfd85
lea esi, [esp + 0x2c]
call fcn.00423430
mov esi, dword [esp + 0x2c]
jmp 0x4dfd90
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov esi, ebx
mov dword [esp + 0x24], esi
test esi, esi
mov edx, dword [ebx + 4]
mov dword [esp + 0x38], edx
je 0x4dfe14
cmp esi, ebx
je 0x4dfe19
call fcn.005d29f1
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x28], eax
je 0x4dfe6b
test esi, esi
jne 0x4dfe2c
call fcn.005d29f1
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esi + 4]
jne 0x4dfe3a
call fcn.005d29f1
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x18], 1
jne 0x4dfe5c
push eax
push esi
lea edx, [esp + 0x44]
push edx
push ebx
call fcn.004e1d40
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
jmp 0x4dfe01
lea esi, [esp + 0x24]
call fcn.00423430
mov esi, dword [esp + 0x24]
jmp 0x4dfe05
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov esi, edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
test esi, esi
mov ecx, dword [edi + 4]
mov dword [esp + 0x38], ecx
je 0x4dfe96
cmp esi, edi
je 0x4dfe9b
call fcn.005d29f1
mov edx, dword [esp + 0x38]
cmp dword [esp + 0x30], edx
je 0x4dfc3d
mov eax, dword [ebx + 4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4dfebc
cmp eax, ebx
je 0x4dfec1
call fcn.005d29f1
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x28], ecx
je 0x4dfc3d
test esi, esi
jne 0x4dfed8
call fcn.005d29f1
mov edx, dword [esp + 0x30]
cmp edx, dword [esi + 4]
jne 0x4dfee6
call fcn.005d29f1
cmp dword [esp + 0x24], 0
jne 0x4dfef2
call fcn.005d29f1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
cmp eax, dword [ecx + 4]
jne 0x4dff04
call fcn.005d29f1
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x4dff97
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x38]
push eax
push ecx
call fcn.005d540a
add esp, 8
test eax, eax
jge 0x4dff3a
lea esi, [esp + 0x2c]
call fcn.00423430
mov esi, dword [esp + 0x2c]
jmp 0x4dfe87
jle 0x4dff4e
lea esi, [esp + 0x24]
call fcn.00423430
mov esi, dword [esp + 0x2c]
jmp 0x4dfe87
mov edx, dword [esp + 0x30]
push edx
push esi
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.004e1d40
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x34], edx
push ecx
lea edx, [esp + 0x54]
push edx
push ebx
call fcn.004e1d40
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
jmp 0x4dfe87
push 0x80004005
call fcn.00403650
int3