Function at 0x52a4d8
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x6a
push 0
push 0
dec ecx
jne 0x52a4e0
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov byte [ebp - 0x11], al
mov esi, dword [0x54e248]
xor eax, eax
push ebp
push 0x52abad
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x52abc4
call fcn.004057e8
lea eax, [ebp - 0x10]
mov edx, 0x52abd4
call fcn.004057e8
test bl, bl
jne 0x52a5c5
lea edx, [ebp - 0x2f0]
mov eax, dword [0x54e11c]
mov eax, dword [eax]
call fcn.0040b0e8
mov eax, dword [ebp - 0x2f0]
mov edx, 0x52abe4
call fcn.00405b70
jne 0x52a550
cmp byte [ebp - 0x11], 0
je 0x52a5c5
mov eax, dword [0x54e11c]
mov eax, dword [eax]
mov edx, 0x52abf8
call fcn.00405b70
je 0x52a587
lea edx, [ebp - 0x2f4]
mov eax, dword [0x54e11c]
mov eax, dword [eax]
call fcn.0040b0e8
mov eax, dword [ebp - 0x2f4]
mov edx, 0x52abc4
call fcn.00405b70
je 0x52a5c5
mov eax, dword [0x553828]
mov eax, dword [eax + 0x370]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x52ab57
lea edx, [ebp - 0x2f8]
mov eax, dword [0x553828]
mov eax, dword [eax + 0x370]
call fcn.00446ddc
mov edx, dword [ebp - 0x2f8]
mov eax, dword [0x54e11c]
call fcn.004057a4
lea eax, [ebp - 4]
mov edx, dword [0x54e11c]
mov edx, dword [edx]
call fcn.004057e8
mov eax, dword [0x54dbb8]
push dword [eax]
push 0x52ac08
lea edx, [ebp - 0x300]
mov eax, dword [ebp - 4]
call fcn.0040b0b0
push dword [ebp - 0x300]
push 0x52ac18
lea eax, [ebp - 0x2fc]
mov edx, 4
call fcn.00405ae4
mov edx, dword [ebp - 0x2fc]
mov eax, dword [0x54e33c]
mov eax, dword [eax]
call fcn.00457198
test bl, bl
je 0x52a640
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040af70
lea eax, [ebp - 4]
mov ecx, 0x52ac24
mov edx, dword [ebp - 8]
call fcn.00405a70
jmp 0x52aa59
mov eax, dword [ebp - 4]
call fcn.0040abc0
test al, al
je 0x52a652
mov byte [ebp - 0x1f], 1
jmp 0x52a656
mov byte [ebp - 0x1f], 0
movzx eax, byte [ebp - 0x11]
xor al, 1
and al, byte [ebp - 0x1f]
je 0x52a69d
push 0
push 0x52ac38
push dword [ebp - 4]
push 0x52ac4c
lea eax, [ebp - 0x304]
mov edx, 3
call fcn.00405ae4
mov eax, dword [ebp - 0x304]
movzx ecx, word [0x52ac50]
mov dl, 3
call fcn.00447fb0
cmp eax, 7
je 0x52ab57
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004057e8
mov eax, dword [0x54dfac]
cmp byte [eax], 0
je 0x52aa59
mov eax, dword [0x54e168]
cmp word [eax], 0
jbe 0x52a9a5
mov eax, dword [0x54e280]
cmp byte [eax], 0
je 0x52a9a5
lea ecx, [ebp - 0x308]
mov edx, 0x52ac5c
mov eax, dword [ebp - 8]
call fcn.0040aedc
mov edi, dword [ebp - 0x308]
mov dword [ebp - 0x30c], edi
mov eax, dword [ebp - 0x30c]
call fcn.00405c24
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
lea ecx, [ebp - 0x310]
mov edx, 0x52ac6c
mov eax, dword [ebp - 8]
call fcn.0040aedc
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x314]
mov edx, 0x52ac5c
mov eax, dword [ebp - 8]
call fcn.0040aedc
mov edi, dword [ebp - 0x314]
mov dword [ebp - 0x30c], edi
mov eax, dword [ebp - 0x30c]
call fcn.00405c24
push eax
mov eax, dword [ebp - 0x24]
call fcn.00405c24
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
lea ecx, [ebp - 0x318]
mov edx, 0x52ac6c
mov eax, dword [ebp - 8]
call fcn.0040aedc
mov edi, dword [ebp - 0x318]
mov dword [ebp - 0x30c], edi
mov eax, dword [ebp - 0x30c]
call fcn.00405c24
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
lea ecx, [ebp - 0x31c]
mov edx, 0x52ac7c
mov eax, dword [ebp - 8]
call fcn.0040aedc
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x320]
mov edx, 0x52ac6c
mov eax, dword [ebp - 8]
call fcn.0040aedc
mov edi, dword [ebp - 0x320]
mov dword [ebp - 0x30c], edi
mov eax, dword [ebp - 0x30c]
call fcn.00405c24
push eax
mov eax, dword [ebp - 0x28]
call fcn.00405c24
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
lea ecx, [ebp - 0x324]
mov edx, 0x52ac7c
mov eax, dword [ebp - 8]
call fcn.0040aedc
mov edi, dword [ebp - 0x324]
mov dword [ebp - 0x30c], edi
mov eax, dword [ebp - 0x30c]
call fcn.00405c24
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
lea ecx, [ebp - 0x328]
mov edx, 0x52ac8c
mov eax, dword [ebp - 8]
call fcn.0040aedc
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x32c]
mov edx, 0x52ac7c
mov eax, dword [ebp - 8]
call fcn.0040aedc
mov edi, dword [ebp - 0x32c]
mov dword [ebp - 0x30c], edi
mov eax, dword [ebp - 0x30c]
call fcn.00405c24
push eax
mov eax, dword [ebp - 0x2c]
call fcn.00405c24
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
lea ecx, [ebp - 0x330]
mov edx, 0x52ac8c
mov eax, dword [ebp - 8]
call fcn.0040aedc
mov edi, dword [ebp - 0x330]
mov dword [ebp - 0x30c], edi
mov eax, dword [ebp - 0x30c]
call fcn.00405c24
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
lea ecx, [ebp - 0x334]
mov edx, 0x52ac9c
mov eax, dword [ebp - 8]
call fcn.0040aedc
mov eax, dword [ebp - 0x334]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x338]
mov edx, 0x52ac8c
mov eax, dword [ebp - 8]
call fcn.0040aedc
mov edi, dword [ebp - 0x338]
mov dword [ebp - 0x30c], edi
mov eax, dword [ebp - 0x30c]
call fcn.00405c24
push eax
mov eax, dword [ebp - 0x30]
call fcn.00405c24
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x31], al
lea ecx, [ebp - 0x33c]
mov edx, 0x52abc4
mov eax, dword [ebp - 8]
call fcn.0040aedc
mov eax, dword [ebp - 0x33c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
call fcn.00405c24
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x39], al
lea ecx, [ebp - 0x340]
mov edx, 0x52acac
mov eax, dword [ebp - 8]
call fcn.0040aedc
mov eax, dword [ebp - 0x340]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x344]
mov edx, 0x52ac9c
mov eax, dword [ebp - 8]
call fcn.0040aedc
mov eax, dword [ebp - 0x344]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
call fcn.00405c24
push eax
mov eax, dword [ebp - 0x40]
call fcn.00405c24
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x45], al
lea ecx, [ebp - 0x348]
mov edx, 0x52acac
mov eax, dword [ebp - 8]
call fcn.0040aedc
mov edi, dword [ebp - 0x348]
mov dword [ebp - 0x30c], edi
mov eax, dword [ebp - 0x30c]
call fcn.00405c24
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
lea ecx, [ebp - 0x34c]
mov edx, 0x52acac
mov eax, dword [ebp - 8]
call fcn.0040aedc
mov edi, dword [ebp - 0x34c]
mov dword [ebp - 0x30c], edi
mov eax, dword [ebp - 0x30c]
call fcn.00405c24
push eax
mov eax, dword [ebp - 4]
call fcn.00405c24
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x52aa59
cmp byte [ebp - 0x1f], 0
je 0x52aa59
push 0x52acbc
push dword [ebp - 4]
push 0x52acf4
push 0x52acf4
push 0x52ad00
push dword [ebp - 8]
lea eax, [ebp - 0x350]
mov edx, 6
call fcn.00405ae4
mov eax, dword [ebp - 0x350]
call fcn.0044812c
test bl, bl
jne 0x52aa8b
lea edx, [ebp - 0x354]
mov eax, dword [0x54e11c]
mov eax, dword [eax]
call fcn.0040b0e8
mov eax, dword [ebp - 0x354]
mov edx, 0x52abe4
call fcn.00405b70
jne 0x52aa8b
call fcn.00532830
jmp 0x52ab57
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x2ec]
call fcn.00403684
mov edx, 0x218
lea eax, [ebp - 0x2ec]
call fcn.00403bb4
call fcn.00402f20
mov ebx, dword [0x54de20]
movzx ebx, word [ebx]
inc word [esi]
mov eax, 0x218
call fcn.00402dc4
movzx edx, word [esi]
mov ecx, dword [0x54df88]
mov dword [ecx + edx*4 - 4], eax
movzx eax, word [esi]
mov edx, dword [0x54de20]
mov word [edx], ax
call fcn.0052a0a8
movzx eax, word [esi]
mov edx, dword [0x54df88]
mov edx, dword [edx + eax*4 - 4]
lea eax, [ebp - 0x2ec]
call fcn.00403cf4
call fcn.00402f20
movzx eax, word [esi]
mov edx, dword [0x54df88]
mov eax, dword [edx + eax*4 - 4]
mov edx, 0x218
call fcn.00402de0
dec word [esi]
mov eax, dword [0x54de20]
mov word [eax], bx
mov ebx, 1
mov eax, dword [0x54df88]
mov edx, dword [eax + ebx*4 - 4]
lea eax, [ebp - 0x2ec]
call fcn.00403cf4
call fcn.00402f20
inc ebx
movzx eax, word [esi]
cmp ebx, eax
jle 0x52ab26
lea eax, [ebp - 0x2ec]
call fcn.00403804
call fcn.00402f20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52abb4
lea eax, [ebp - 0x354]
mov edx, 0x12
call fcn.00405774
lea eax, [ebp - 0x308]
mov edx, 4
call fcn.00405774
lea eax, [ebp - 0x2f8]
call fcn.00405750
lea eax, [ebp - 0x2f4]
mov edx, 2
call fcn.00405774
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405774
ret