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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a8468
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
xor esi, esi
mov dword [esp + 0x50], esi
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x4c8bb6
push str.Download
lea ebx, [esi + 8]
lea eax, [esp + 0x24]
call fcn.00404050
jmp 0x4c8bce
cmp eax, 2
lea edi, [esp + 0x20]
mov edx, str.Upload
je 0x4c8bc9
mov edx, str.Synchronize
call fcn.004040f0
mov eax, dword [esp + 0x20]
push eax
push str.CUsrUrlSyncModule::Start_tOption_:__s
mov ecx, ebp
call fcn.004aee70
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.004cbda0
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.004cbda0
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 + 0x50], 1
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
cmp eax, esi
jle 0x4c8c8e
lea edx, [eax - 1]
cmp edx, esi
jl 0x4c8e14
cmp edx, eax
jg 0x4c8e14
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x4c8c8e
push 1
push 0x5bd0e8
lea eax, [esp + 0x24]
push eax
call fcn.00403fc0
push 7
push str.url.dat
lea ecx, [esp + 0x24]
push ecx
call fcn.00403fc0
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 + 0x50], 2
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
cmp eax, esi
jle 0x4c8cee
lea ecx, [eax - 1]
cmp ecx, esi
jl 0x4c8e14
cmp ecx, eax
jg 0x4c8e14
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4c8cee
push 1
push 0x5bd0e8
lea eax, [esp + 0x20]
push eax
call fcn.00403fc0
push 7
push str.url.dat
lea ecx, [esp + 0x20]
push ecx
call fcn.00403fc0
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c8e1e
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 [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
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 + 0x5c], 4
call fcn.004126f0
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 + 0x50], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c8d8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 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 0x4c8db1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 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 0x4c8dd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x50], 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 0x4c8dfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x48]
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.00404550
call fcn.004dc540
cmp eax, esi
mov dword [esp + 0x24], eax
jne 0x4c8ec6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, esi
jne 0x4c8e3e
or edi, 0xffffffff
mov byte [esp + 0x50], 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 0x4c8e63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 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 0x4c8e88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x50], 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 0x4c8eb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x48]
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_B4E9422B452B3.0.689.201
push esi
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
mov ecx, ebp
je 0x4c8fa1
push str.Start__filemap_exist
call fcn.004aee70
add esp, 4
cmp dword [0x603434], esi
mov dword [esp + 0x2c], esi
jne 0x4c8f12
lea eax, [esp + 0x2c]
call fcn.004de730
cmp eax, esi
mov dword [esp + 0x2c], eax
jl 0x4c8f6e
mov dword [0x603434], 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 0x4c8f33
cmp eax, 0x80
jne 0x4c8f38
mov byte [esp + 0x30], 1
push edi
push ebp
mov byte [esp + 0x58], 3
call fcn.004cafc0
lea ecx, [ebp + 0x28]
push ecx
push ebp
call fcn.004cafc0
mov byte [esp + 0x50], 2
cmp byte [esp + 0x30], 0
je 0x4c8ff1
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4c8ff1
lea ecx, [esp + 0x18]
call fcn.00404510
lea ecx, [esp + 0x1c]
call fcn.00404510
lea ecx, [esp + 0x20]
call fcn.00404510
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
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.004aee70
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.00403ce0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.004c9c80
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.00403ce0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.004c9c80
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.00403ce0
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 0x4c9037
mov eax, dword [esp + 0x18]
push ebx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
call fcn.00403ce0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.004c9c80
mov eax, dword [edi + 4]
mov ecx, dword [eax]
mov eax, dword [ebx + 4]
mov edx, dword [eax]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x24]
test eax, eax
mov esi, dword [edi + 4]
je 0x4c9060
cmp eax, edi
je 0x4c9065
call fcn.00578ff3
cmp dword [esp + 0x28], esi
je 0x4c8d1d
mov eax, dword [esp + 0x2c]
test eax, eax
mov esi, dword [ebx + 4]
je 0x4c907e
cmp eax, ebx
je 0x4c9083
call fcn.00578ff3
cmp dword [esp + 0x30], esi
je 0x4c8d1d
cmp dword [esp + 0x24], 0
jne 0x4c9099
call fcn.00578ff3
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
cmp esi, dword [eax + 4]
jne 0x4c90ab
call fcn.00578ff3
cmp dword [esp + 0x2c], 0
jne 0x4c90b7
call fcn.00578ff3
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
cmp ecx, dword [edx + 4]
jne 0x4c90c9
call fcn.00578ff3
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4c916e
mov eax, dword [esi + 0x10]
jmp 0x4c90e0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c9106
test dx, dx
je 0x4c9102
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c9106
add eax, 4
add ecx, 4
test dx, dx
jne 0x4c90e0
xor eax, eax
jmp 0x4c910b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jge 0x4c911d
lea esi, [esp + 0x24]
call fcn.0046f3e0
jmp 0x4c9051
jle 0x4c912d
lea esi, [esp + 0x2c]
call fcn.0046f3e0
jmp 0x4c9051
mov ecx, dword [esp + 0x24]
push esi
push ecx
lea edx, [esp + 0x3c]
push edx
push edi
call fcn.004cb6a0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
push ecx
lea edx, [esp + 0x44]
push edx
push ebx
call fcn.004cb6a0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
jmp 0x4c904d
push 0x80004005
call fcn.00404550
int3