Function at 0x403e51
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x565bfd
call fcn.00524444
sub esp, 0x88
mov eax, dword [0x61d784]
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x94]
push ebx
mov dword [ebp - 4], esi
call fcn.0040207d
push esi
lea ecx, [ebp - 0x94]
call fcn.004020bb
test eax, eax
je 0x403eba
push ebx
lea ecx, [ebp - 0x18]
call fcn.0053ecd8
push str..bak
lea ecx, [ebp - 0x18]
call fcn.0053ef2b
push 1
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [ebp - 0x5c]
call fcn.00540041
push esi
push 0x1001
push ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.005400b6
test eax, eax
je 0x4041ae
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push esi
mov esi, 0x110a
push esi
push dword [edi + 0xd8]
call ebx
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4041ac
push dword [ebp - 0x14]
lea eax, [ebp - 0x28]
lea ecx, [edi + 0xbc]
push eax
call fcn.0053bfca
lea eax, [ebp - 0x28]
push 0x5b8644
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.0053ede4
push dword [eax]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.00540229
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0053eb4f
push dword [ebp - 0x14]
push 4
push esi
push dword [edi + 0xd8]
call ebx
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x404178
mov eax, dword [0x61d784]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
lea esi, [edi + 0xbc]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
push dword [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0053c06a
test eax, eax
jne 0x403f85
or dword [ebp - 0x24], 0xffffffff
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0053c0e1
mov esi, eax
test esi, esi
je 0x404148
mov eax, dword [edi + 0x70]
lea ecx, [eax + 1]
cmp dword [ebp - 0x24], ecx
jne 0x403fb9
lea eax, [ebp - 0x20]
push 0x5b8640
push eax
call fcn.0053ae0a
pop ecx
pop ecx
jmp 0x40411c
add eax, 2
cmp dword [ebp - 0x24], eax
jl 0x403ffe
push dword [esi]
lea eax, [ebp - 0x2c]
push eax
call fcn.00404e24
pop ecx
pop ecx
push dword [eax]
mov byte [ebp - 4], 5
movsx eax, byte [esi + 0xc]
push dword [esi + 8]
push eax
lea eax, [ebp - 0x20]
push 0x5b8634
push eax
call fcn.0053ae0a
add esp, 0x14
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0053eb4f
jmp 0x40411c
push 1
push 0x42
lea ecx, [ebp + 8]
call fcn.0053a3f4
mov eax, dword [esi + 4]
mov byte [ebp - 4], 6
dec eax
dec eax
je 0x40402b
dec eax
dec eax
je 0x404024
dec eax
dec eax
jne 0x404038
push 0x5b8630
jmp 0x404030
push 0x5b862c
jmp 0x404030
push 0x5b8628
lea ecx, [ebp + 8]
call fcn.0053ecd8
mov eax, dword [esi + 0x10]
lea edi, [esi + 0x10]
cmp dword [eax - 8], 0
jne 0x40405b
push 0x622c94
lea ecx, [ebp - 0x30]
call fcn.0053ebbd
or dword [ebp - 0x10], 1
mov byte [ebp - 4], 7
jmp 0x404089
push str._CG
lea ecx, [ebp - 0x48]
call fcn.0053ebbd
or dword [ebp - 0x10], 2
push edi
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 8
push eax
call fcn.0053ed7e
or dword [ebp - 0x10], 4
mov dword [ebp - 4], 9
mov edi, dword [eax]
push dword [esi]
lea eax, [ebp - 0x44]
push eax
call fcn.00404e24
pop ecx
pop ecx
push edi
mov dword [ebp - 4], 0xa
push dword [eax]
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push str._t_s__s_s
push eax
call fcn.0053ae0a
add esp, 0x14
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 9
call fcn.0053eb4f
test byte [ebp - 0x10], 4
mov dword [ebp - 4], 8
je 0x4040db
and dword [ebp - 0x10], 0xfffffffb
lea ecx, [ebp - 0x3c]
call fcn.0053eb4f
test byte [ebp - 0x10], 2
mov dword [ebp - 4], 7
je 0x4040f4
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x48]
call fcn.0053eb4f
test byte [ebp - 0x10], 1
mov dword [ebp - 4], 6
je 0x40410d
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x30]
call fcn.0053eb4f
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.0053eb4f
mov edi, dword [ebp - 0x38]
lea eax, [ebp - 0x20]
push 0x5b85a0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0053ede4
push dword [eax]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xb
call fcn.00540229
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0053eb4f
push dword [ebp - 0x1c]
push 1
push 0x110a
push dword [edi + 0xd8]
call ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
call fcn.0053eb4f
cmp dword [ebp - 0x1c], 0
jne 0x403f59
mov esi, 0x110a
push 0x5b8614
lea ecx, [ebp - 0x5c]
call fcn.00540229
push dword [ebp - 0x14]
push 1
push esi
push dword [edi + 0xd8]
call ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
call fcn.0053eb4f
cmp dword [ebp - 0x14], 0
jne 0x403efe
xor esi, esi
mov eax, dword [ebp - 0x18]
pop edi
cmp dword [eax - 8], esi
pop esi
pop ebx
je 0x4041c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00540073
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0053eb4f
mov ecx, dword [ebp - 0xc]
push 1
pop eax
mov dword fs:[0], ecx
leave
ret 4