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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x606468
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 0x4e2ee6
push str.Download
lea ebx, [esi + 8]
lea eax, [esp + 0x24]
call fcn.004037a0
jmp 0x4e2efe
cmp eax, 2
lea edi, [esp + 0x20]
mov edx, str.Upload
je 0x4e2ef9
mov edx, str.Synchronize
call fcn.00403760
mov eax, dword [esp + 0x20]
push eax
push str.CUsrUrlSyncModule::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 + 0x38]
mov edx, dword [ecx + 4]
lea edi, [ebp + 0x34]
add esp, 8
push edx
mov ecx, edi
call fcn.00454120
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 + 0x44]
mov ecx, dword [eax + 4]
lea ebx, [ebp + 0x40]
push ecx
mov ecx, ebx
call fcn.00454120
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 0x4e2fbe
lea edx, [eax - 1]
cmp edx, esi
jl 0x4e3145
cmp edx, eax
jg 0x4e3145
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x4e2fbe
push 1
push 0x62454c
lea eax, [esp + 0x24]
push eax
call fcn.0040aee0
push 7
push str.url.dat
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 0x4e301e
lea ecx, [eax - 1]
cmp ecx, esi
jl 0x4e3145
cmp ecx, eax
jg 0x4e3145
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4e301e
push 1
push 0x62454c
lea eax, [esp + 0x20]
push eax
call fcn.0040aee0
push 7
push str.url.dat
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 0x4e314f
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 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 + 0x24], eax
push str.url.dat
push esi
push str.__u__s
lea edi, [esp + 0x30]
mov byte [esp + 0x6c], 4
call fcn.0040ac80
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x30]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
add esp, 0xc
push esi
push ebp
call eax
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 0x4e30bd
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 0x4e30e2
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 0x4e3107
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 0x4e312f
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
call fcn.0051bef0
cmp eax, esi
mov dword [esp + 0x24], eax
jne 0x4e31f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, esi
jne 0x4e316f
or edi, 0xffffffff
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 0x4e3194
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 0x4e31b9
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 0x4e31e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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 str.URL_MAP:CE030A14_F1F1_4e3b_A9A1_B4E9422B452B4.4.1108.400
push esi
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
mov ecx, ebp
je 0x4e32d2
push str.Start__filemap_exist
call fcn.004c6880
add esp, 4
cmp dword [0x67f6bc], esi
mov dword [esp + 0x2c], esi
jne 0x4e3243
lea eax, [esp + 0x2c]
call fcn.0051f280
cmp eax, esi
mov dword [esp + 0x2c], eax
jl 0x4e329f
mov dword [0x67f6bc], 1
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x34], eax
mov byte [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
je 0x4e3264
cmp eax, 0x80
jne 0x4e3269
mov byte [esp + 0x30], 1
push edi
push ebp
mov byte [esp + 0x68], 3
call fcn.004e5350
lea ecx, [ebp + 0x28]
push ecx
push ebp
call fcn.004e5350
mov byte [esp + 0x60], 2
cmp byte [esp + 0x30], 0
je 0x4e3322
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4e3322
lea ecx, [esp + 0x18]
call fcn.00403870
lea ecx, [esp + 0x1c]
call fcn.00403870
lea ecx, [esp + 0x20]
call fcn.00403870
mov eax, dword [esp + 0x2c]
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 str.Start__filemap_not_exist__load_app_file
call fcn.004c6880
mov eax, dword [esp + 0x20]
add esp, 4
push edi
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
call fcn.0040a210
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.004e4060
lea eax, [ebp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
call fcn.0040a210
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.004e4060
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.0040a210
add eax, 0x10
mov dword [esi], eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x40]
mov ecx, ebp
call eax
test eax, eax
je 0x4e3368
mov eax, dword [esp + 0x18]
push ebx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
call fcn.0040a210
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.004e4060
mov eax, dword [edi + 4]
mov ecx, dword [eax]
mov eax, dword [ebx + 4]
mov esi, dword [eax]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x2c]
test eax, eax
mov edx, dword [edi + 4]
mov dword [esp + 0x38], edx
je 0x4e3395
cmp eax, edi
je 0x4e339a
call fcn.005d29f1
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x30], eax
je 0x4e304d
mov eax, dword [esp + 0x24]
test eax, eax
mov ecx, dword [ebx + 4]
mov dword [esp + 0x40], ecx
je 0x4e33bb
cmp eax, ebx
je 0x4e33c0
call fcn.005d29f1
cmp esi, dword [esp + 0x40]
je 0x4e304d
cmp dword [esp + 0x2c], 0
jne 0x4e33d6
call fcn.005d29f1
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
cmp edx, dword [eax + 4]
jne 0x4e33e8
call fcn.005d29f1
cmp dword [esp + 0x24], 0
jne 0x4e33f4
call fcn.005d29f1
mov ecx, dword [esp + 0x24]
cmp esi, dword [ecx + 4]
jne 0x4e3402
call fcn.005d29f1
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + 0x10]
mov eax, dword [ecx - 0xc]
mov edx, dword [esi + 0x10]
push eax
push edx
call fcn.0051d100
add esp, 8
test eax, eax
jge 0x4e342f
lea esi, [esp + 0x2c]
call fcn.004541c0
mov esi, dword [esp + 0x28]
jmp 0x4e3382
jle 0x4e3443
lea esi, [esp + 0x24]
call fcn.004541c0
mov esi, dword [esp + 0x28]
jmp 0x4e3382
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x14]
cmp ecx, dword [esi + 0x14]
ja 0x4e346d
mov edx, dword [esp + 0x2c]
push eax
push edx
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.00454b50
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x54]
push ecx
push ebx
call fcn.00454b50
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov esi, eax
jmp 0x4e3382