Function at 0x4d2360
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x240
mov eax, dword [0x520014]
xor eax, ebp
mov dword [esp + 0x238], eax
mov bl, 1
cmp dword [0x525e68], 0
je 0x4d23a0
mov ecx, dword [esp + 0x238]
xor ecx, ebp
call fcn.0048f468
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [0x525e58]
test esi, esi
je 0x4d2491
test byte [0x521bc0], 1
je 0x4d2388
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
movaps xmmword [esp], xmm0
mov dword [esp + 0x20], 0
cmp byte [esi + 0xb], 0
jns 0x4d23d3
mov esi, dword [esi]
mov eax, esp
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4d2408
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x20], 0x40000001
sbb eax, 0
jb 0x4d2408
mov eax, dword [0x525e58]
cmp byte [eax + 0xb], 0
jns 0x4d2401
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x525e58]
cmp byte [eax + 0xb], 0
jns 0x4d2415
mov eax, dword [eax]
sub esp, 0x1c
movaps xmm0, xmmword [0x50bcf0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x525e68], eax
mov bl, 1
inc eax
cmp eax, 1
ja 0x4d2388
lea esi, [esp + 0x32]
push 0x206
push 0xff
push esi
call fcn.004926b0
add esp, 0xc
mov word [esi - 2], 0
lea esi, [esp + 0x30]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4d248a
cmp eax, 0x104
jbe 0x4d2533
xor ebx, ebx
jmp 0x4d2388
push 0xc
call fcn.0048e8dd
add esp, 4
mov esi, eax
lea edi, [esp + 0x30]
push 0x208
push 0xff
push edi
call fcn.004926b0
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edi, edi
dec edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov ecx, esi
lea eax, [esp + 0x30]
push eax
call fcn.00439870
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4d24e4
mov eax, dword [esi + 4]
mov ecx, esi
push eax
push 0x5c
call fcn.0046bd60
cmp eax, edi
je 0x4d251c
movzx ecx, byte [esi + 0xb]
mov edx, ecx
test cl, cl
jns 0x4d24ff
mov edx, dword [esi + 4]
cmp edx, eax
jbe 0x4d25e3
mov edx, eax
inc edx
test cl, cl
js 0x4d25c8
mov word [esi + eax*2 + 2], 0
mov byte [esi + 0xb], dl
mov ecx, esi
push str.debug.log
call fcn.004432d0
mov dword [0x525e58], esi
jmp 0x4d23ae
mov ecx, dword [0x525e58]
push esi
call fcn.00442db0
mov ecx, dword [0x525e58]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x4d25d9
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x5c
je 0x4d256b
push 0x505448
call fcn.004432d0
mov ecx, dword [0x525e58]
push str.debug.log
call fcn.004432d0
mov eax, dword [0x525e58]
cmp byte [eax + 0xb], 0
jns 0x4d2582
mov eax, dword [eax]
sub esp, 0x1c
movaps xmm0, xmmword [0x50bcf0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x525e68], eax
inc eax
cmp eax, 1
ja 0x4d2388
mov dword [0x525e68], 0
jmp 0x4d248a
mov ecx, dword [esi]
mov word [ecx + eax*2 + 2], 0
mov dword [esi + 4], edx
jmp 0x4d251c
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
jmp 0x4d2553
mov ecx, esi
call fcn.004d0940
int3