Function at 0x4a9150
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b8c8
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor edx, edx
lea eax, [edi + 0x69c]
xchg dword [eax], edx
mov eax, dword [edi + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x4a91a2
push eax
call esi
mov dword [edi + 0x10], 0xffffffff
mov eax, dword [edi + 0x67c]
test eax, eax
je 0x4a91b9
push eax
call esi
mov dword [edi + 0x67c], 0
mov eax, dword [edi + 0x680]
test eax, eax
je 0x4a91d0
push eax
call esi
mov dword [edi + 0x680], 0
lea esi, [edi + 0x21c]
mov dword [ebp - 0x84], 0
mov ecx, esi
mov dword [ebp - 0x74], 0
xor eax, eax
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a9200
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x84]
call fcn.00403a70
push 4
push str..dt_
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0
call fcn.004038f0
mov ecx, esi
mov dword [ebp - 0x6c], 0
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a9255
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x6c]
call fcn.00403a70
push 5
push str..cfg_
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.004038f0
mov ebx, dword [ebp + 8]
cmp ebx, 9
jne 0x4a93de
mov eax, 0x30
push 0x40
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x70], 8
lea ecx, [ebp - 0x54]
lea eax, [ebp - 0x84]
cmovae eax, dword [ebp - 0x84]
push ecx
push eax
call fcn.004ecbf0
lea eax, [edi + 0x62c]
add esp, 0x14
cmp word [eax], 0
je 0x4a9311
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x4a9311
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmovae eax, dword [ebp - 0x6c]
push eax
call esi
cmp dword [ebp - 0x70], 8
lea eax, [ebp - 0x84]
cmovae eax, dword [ebp - 0x84]
push eax
call esi
mov ebx, 0xa
jmp 0x4a942d
push 0
lea ecx, [ebp - 0x94]
call fcn.004eb340
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x70], 8
lea eax, [ebp - 0x84]
push esi
cmovae eax, dword [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x56d17c]
mov ecx, 1
fild dword [edi + 0x670]
cmove eax, ecx
mov ecx, dword [edi + 0x670]
test ecx, ecx
jns 0x4a9373
fadd dword [0x533ec0]
mov dword [ebp - 0x8c], eax
fstp dword [ebp - 0x88]
fld dword [ebp - 0x88]
fild dword [ebp - 0x8c]
test eax, eax
jns 0x4a9395
fadd dword [0x533ec0]
fstp dword [ebp - 0x88]
fdiv dword [ebp - 0x88]
lea ecx, [ebp - 0x94]
fnstcw word [ebp - 0x86]
movzx eax, word [ebp - 0x86]
or eax, 0xc00
mov dword [ebp - 0x8c], eax
fldcw word [ebp - 0x8c]
fistp qword [ebp - 0x90]
mov esi, dword [ebp - 0x90]
fldcw word [ebp - 0x86]
call fcn.004eb3e0
jmp 0x4a942f
test ebx, ebx
je 0x4a943a
cmp dword [edi + 0x674], 0x400
jb 0x4a9405
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
mov ecx, edi
cmovae eax, dword [ebp - 0x6c]
push eax
call fcn.004a9fd0
test eax, eax
jne 0x4a942d
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmovae eax, dword [ebp - 0x6c]
push eax
call esi
cmp dword [ebp - 0x70], 8
lea eax, [ebp - 0x84]
cmovae eax, dword [ebp - 0x84]
push eax
call esi
xor esi, esi
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4a943a
push esi
push ebx
call eax
push dword [edi + 4]
mov dword [edi + 8], ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp - 0x58]
cmp edx, 8
jb 0x4a947c
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a9472
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a94bf
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0x70]
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
cmp edx, 8
jb 0x4a94cf
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a94c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4a94c5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret 4