Function at 0x4a31a0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7e30
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x53d9f8]
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
mov dword [ebp - 0x60], 0
lea eax, [edi + 0x69c]
xor edx, edx
xchg dword [eax], edx
mov eax, dword [edi + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x4a31f6
push eax
call esi
mov dword [edi + 0x10], 0xffffffff
mov eax, dword [edi + 0x67c]
test eax, eax
je 0x4a320d
push eax
call esi
mov dword [edi + 0x67c], 0
mov eax, dword [edi + 0x680]
test eax, eax
je 0x4a3224
push eax
call esi
mov dword [edi + 0x680], 0
lea esi, [edi + 0x21c]
mov dword [ebp - 0x30], 0
mov ecx, esi
mov dword [ebp - 0x2c], 7
xor eax, eax
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a3243
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.004033b0
push 4
push str..dt_
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00403230
mov ecx, esi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
jmp 0x4a3290
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a3290
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004033b0
push 5
push str..cfg_
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00403230
mov ebx, dword [ebp + 8]
cmp ebx, 9
jne 0x4a33db
cmp word [edi + 0x62c], 0
je 0x4a3312
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00478110
add esp, 8
mov dword [ebp - 0x60], 1
cmp dword [eax + 0x14], 8
jb 0x4a32f9
mov eax, dword [eax]
lea ecx, [edi + 0x62c]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
mov byte [ebp - 0x59], 1
test eax, eax
jne 0x4a3316
mov byte [ebp - 0x59], 0
test byte [ebp - 0x60], 1
je 0x4a3324
lea ecx, [ebp - 0x58]
call fcn.00402d80
cmp byte [ebp - 0x59], 0
lea eax, [ebp - 0x28]
je 0x4a3356
cmp dword [ebp - 0x14], 8
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
mov ebx, 0xa
jmp 0x4a3424
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push esi
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x541c28]
mov ecx, 1
fild dword [edi + 0x670]
cmove eax, ecx
mov ecx, dword [edi + 0x670]
test ecx, ecx
jns 0x4a33a2
fadd dword [0x50fe14]
fstp dword [ebp - 0x60]
fld dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
fild dword [ebp - 0x60]
test eax, eax
jns 0x4a33b8
fadd dword [0x50fe14]
fstp dword [ebp - 0x60]
fdiv dword [ebp - 0x60]
fnstcw word [ebp - 0x5a]
movzx eax, word [ebp - 0x5a]
or eax, 0xc00
mov dword [ebp - 0x60], eax
fldcw word [ebp - 0x60]
fistp qword [ebp - 0x64]
mov ecx, dword [ebp - 0x64]
fldcw word [ebp - 0x5a]
jmp 0x4a3426
test ebx, ebx
je 0x4a3431
cmp dword [edi + 0x674], 0x400
jb 0x4a3402
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004a3f90
test eax, eax
jne 0x4a3424
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
xor ecx, ecx
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4a3431
push ecx
push ebx
call eax
push dword [edi + 4]
mov dword [edi + 8], ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4a3473
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a3469
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a34b3
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x4a34c3
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a34b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4a34b9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
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.004bee49
mov esp, ebp
pop ebp
ret 4