Function at 0x5d9b2b
Capabilities:
Delete file
Move file

Disassembly:
push 0x2e4
mov eax, 0x611121
call fcn.004db4be
mov edx, ecx
mov dword [ebp - 0x268], edx
lea ecx, [ebp - 0x2c8]
call fcn.0041d3e0
lea eax, [edx + 0xa8]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2b8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x668294]
mov dword [ebp - 0x280], esi
mov dword [ebp - 0x26c], esi
lea ecx, [ebp - 0x2f0]
call fcn.004b5538
mov edi, ebx
mov dword [ebp - 0x284], edi
mov eax, dword [ebp - 0x268]
add eax, 0x30
mov byte [ebp - 4], 3
mov ecx, eax
mov dword [ebp - 0x28c], eax
call fcn.004b5d68
mov dword [ebp - 0x2a8], eax
test eax, eax
je 0x5da0e0
mov ecx, dword [ebp - 0x28c]
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.004b5d92
mov edi, dword [ebp - 0x284]
mov esi, dword [ebp - 0x26c]
mov dword [ebp - 0x280], esi
mov eax, dword [edi + 0x80]
test eax, eax
jne 0x5d9c05
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.0042b3ea
jmp 0x5da0d3
cmp eax, 4
jne 0x5da0d3
cmp dword [edi + 0x1c], 2
jne 0x5da0d3
mov eax, dword [ebp - 0x268]
lea ecx, [ebp - 0x2f0]
push ecx
add eax, 0x60
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, eax
mov dword [ebp - 0x2b4], eax
call fcn.004b5aa4
lea eax, [edi + 0x54]
push eax
lea ecx, [ebp - 0x278]
call fcn.0040d36e
lea esi, [edi + 0x58]
push esi
lea ecx, [ebp - 0x290]
call fcn.0040d36e
lea ecx, [ebp - 0x290]
call fcn.0042a09a
push eax
lea ecx, [ebp - 0x2a4]
call fcn.0040d36e
mov ecx, dword [ebp - 0x290]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5d9c87
call fcn.00407965
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0040d242
lea eax, [edi + 0x5c]
push eax
lea ecx, [ebp - 0x294]
call fcn.0040d36e
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x2e8]
call fcn.0040d242
mov ecx, dword [ebp - 0x294]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5d9cd0
call fcn.00407965
call fcn.005cd2d9
mov dword [ebp - 0x2cc], eax
lea ecx, [ebp - 0x298]
lea eax, [edi + 0x20]
push eax
call fcn.0040d36e
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.0040d242
mov ecx, dword [ebp - 0x298]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5d9d12
call fcn.00407965
push esi
lea ecx, [ebp - 0x2ac]
call fcn.0040d36e
mov esi, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a0]
mov eax, dword [0x668294]
push esi
mov dword [ebp - 0x2a0], eax
push dword [esi - 8]
mov eax, dword [ebp - 0x280]
push eax
push dword [eax - 8]
call fcn.0040f4c7
lea ecx, [esi - 0xc]
mov byte [ebp - 4], 6
cmp ecx, 0x668010
je 0x5d9d5c
call fcn.00407965
cmp dword [edi + 0x8c], 1
jne 0x5d9dbd
mov esi, dword [ebp - 0x278]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [edi + 0x10c]
push eax
lea ecx, [ebp - 0x29c]
call fcn.0040d36e
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x2d8]
call fcn.0040d242
mov ecx, dword [ebp - 0x29c]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5d9dac
call fcn.00407965
mov eax, dword [edi + 0x114]
mov dword [ebp - 0x2d4], eax
jmp 0x5da02e
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x274]
call fcn.0040d36e
push 0x5c
push dword [ebp - 0x274]
call fcn.004e0fe2
pop ecx
pop ecx
test eax, eax
jne 0x5d9deb
or dword [ebp - 0x27c], 0xffffffff
jmp 0x5d9df9
sub eax, dword [ebp - 0x274]
sar eax, 1
mov dword [ebp - 0x27c], eax
mov esi, dword [ebp - 0x2a4]
push 0x637d14
push esi
call fcn.005073b0
pop ecx
pop ecx
test eax, eax
jne 0x5d9e1c
mov dword [ebp - 0x270], 0x41
jmp 0x5d9e57
push 0x637d20
push esi
call fcn.005073b0
pop ecx
pop ecx
test eax, eax
jne 0x5d9e39
mov dword [ebp - 0x270], 0x42
jmp 0x5d9e57
push 0x637d2c
push esi
call fcn.005073b0
pop ecx
pop ecx
push 0x41
pop ecx
push 0x43
test eax, eax
pop edx
cmove ecx, edx
mov dword [ebp - 0x270], ecx
lea ecx, [ebp - 0x274]
call fcn.0040f41c
mov esi, dword [ebp - 0x274]
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x270]
push esi
push dword [ebp - 0x278]
mov word [esi + eax*2 + 2], cx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0040d242
mov eax, dword [0x668294]
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x288], eax
push 1
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 9
push 0x637cac
push eax
call fcn.0040cefd
add esp, 0xc
lea eax, [ebp - 0x288]
push ebx
push 0x637cac
push eax
call fcn.0040cefd
add esp, 0xc
push dword [ebp - 0x27c]
push dword [ebp - 0x2e0]
call fcn.005073b0
pop ecx
pop ecx
test eax, eax
jne 0x5d9f08
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.0040d242
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x268]
add ecx, 0x90
push ecx
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x270], ebx
lea eax, [ebx + 1]
push eax
call fcn.004b652b
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x274]
push eax
push ebx
lea ecx, [ecx + 0x90]
call fcn.004b5e0c
mov ecx, eax
call fcn.0040d242
mov ecx, esi
call fcn.00420620
mov ecx, dword [ebp - 0x268]
mov ebx, eax
push dword [ebp - 0x270]
lea ecx, [ecx + 0x90]
call fcn.004b5e0c
mov dword [eax + 4], ebx
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x24c]
mov ebx, dword [ebp - 0x250]
push eax
mov dword [ebp - 0x2b0], ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x268]
push dword [ebp - 0x270]
lea ecx, [ecx + 0x90]
call fcn.004b5e0c
mov ecx, dword [ebp - 0x2b0]
push dword [ebp - 0x270]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx + 0x90]
call fcn.004b5e0c
mov ecx, dword [ebp - 0x268]
push 0
pop ebx
mov eax, dword [eax + 4]
add dword [ecx + 0xa0], eax
adc dword [ecx + 0xa4], ebx
call fcn.005da26d
mov ecx, dword [ebp - 0x288]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5d9ffe
call fcn.00407965
mov ecx, dword [ebp - 0x27c]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5da014
call fcn.00407965
lea ecx, [esi - 0xc]
mov byte [ebp - 4], 6
cmp ecx, 0x668010
je 0x5da028
call fcn.00407965
mov esi, dword [ebp - 0x278]
mov eax, dword [ebp - 0x268]
push edi
mov dword [eax + 0x1c], 1
mov eax, dword [edi]
call dword [eax + 0x20]
mov ecx, dword [ebp - 0x28c]
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x26c]
mov edi, ebx
push eax
mov dword [ebp - 0x284], edi
call fcn.004b5c75
mov ecx, dword [ebp - 0x2b4]
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.004b5ad8
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.0042b3ea
mov ecx, dword [ebp - 0x2a0]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5da0a3
call fcn.00407965
mov ecx, dword [ebp - 0x2a4]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5da0b9
call fcn.00407965
lea ecx, [esi - 0xc]
mov byte [ebp - 4], 3
cmp ecx, 0x668010
je 0x5da0cd
call fcn.00407965
mov esi, dword [ebp - 0x280]
cmp dword [ebp - 0x2a8], 0
jne 0x5d9bb2
cmp dword [ebp - 0x2c4], 0
jbe 0x5da112
mov esi, dword [ebp - 0x28c]
push ebx
lea ecx, [ebp - 0x2c8]
call fcn.0041d3f0
push eax
mov ecx, esi
call fcn.004b5cc0
inc ebx
cmp ebx, dword [ebp - 0x2c4]
jb 0x5da0ef
mov esi, dword [ebp - 0x280]
mov byte [ebp - 4], 0xa
test edi, edi
je 0x5da120
mov eax, dword [edi]
push edi
call dword [eax + 0x20]
lea ecx, [ebp - 0x2f0]
call fcn.004b5737
lea ecx, [esi - 0xc]
cmp ecx, 0x668010
je 0x5da13b
call fcn.00407965
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x2c8]
call fcn.0041d40f
call fcn.004db46d
ret