Function at 0x59c004
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x59c00c
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x59cd0a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x184], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x40], 0
je 0x59ccd7
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 4]
call fcn.0058c7fc
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.0041d9ec
cmp dword [ebp - 0x60], 0
jne 0x59c06f
mov eax, dword [ebp - 4]
cmp dword [eax + 0x138], 0
je 0x59ccd7
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0058dc6c
mov byte [ebp - 0x39], al
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x134], edx
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x661], 0
je 0x59c0aa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x120]
mov dword [ebp - 0x18], eax
jmp 0x59c0d8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x120], 0
je 0x59c0d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x120]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x11c]
je 0x59c0d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x120]
call fcn.00404ff0
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x3c]
mov byte [ebp - 0x19], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x4d]
mov byte [ebp - 0x1a], al
mov eax, dword [ebp - 4]
mov byte [eax + 0x4d], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x120], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x3c], 7
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0058dc98
mov byte [ebp - 0x49], al
xor eax, eax
push ebp
push 0x59cccd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5b5], 0
je 0x59c140
mov dl, 1
mov eax, dword [0x4375dc]
call fcn.00444558
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x6a0], 0
jne 0x59c17b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x18c], 0
jne 0x59c17b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x18d], 0
jne 0x59c17b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x59c17b
mov eax, dword [ebp - 4]
call fcn.0059a654
mov eax, dword [ebp - 4]
cmp byte [eax + 0x6a0], 0
jne 0x59c20d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x59c20d
mov byte [ebp - 0x21], 0
mov eax, dword [ebp - 4]
cmp word [eax + 0x5ea], 0
je 0x59c1e6
mov eax, dword [ebp - 4]
push dword [eax + 0x5a4]
push dword [eax + 0x5a0]
mov eax, dword [ebp - 4]
add eax, 0x690
push eax
lea eax, [ebp - 0x21]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ecx, eax
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x5ec]
call dword [ebx + 0x5e8]
cmp byte [ebp - 0x21], 0
je 0x59c20d
lea edx, [ebp - 0x68]
mov eax, 0xbb
call fcn.0041e6b8
mov ecx, dword [ebp - 0x68]
mov dl, 1
mov eax, dword [0x583bd8]
call fcn.0042388c
call fcn.00406160
mov eax, dword [ebp - 4]
cmp byte [eax + 0x114], 0
je 0x59c225
mov eax, dword [ebp - 4]
call fcn.0058f708
test eax, eax
jg 0x59c24b
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 4]
call fcn.0058c7fc
mov eax, dword [ebp - 0x6c]
call fcn.0056ce84
test al, al
je 0x59c2a0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c8]
cmp byte [eax + 0x21], 0
jne 0x59c2a0
mov eax, dword [ebp - 4]
mov byte [eax + 0x660], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x114], 0
jne 0x59c287
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.005a0278
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x70]
call fcn.00577b44
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 4]
add eax, 0x698
call fcn.00406e3c
mov eax, dword [ebp - 4]
call fcn.0059cd48
mov eax, dword [ebp - 4]
call fcn.0058e130
push ebp
call fcn.0059b6b4
pop ecx
jmp 0x59c2d9
mov eax, dword [ebp - 4]
cmp byte [eax + 0x114], 0
jne 0x59c2c7
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
call fcn.0058c7fc
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 4]
add eax, 0x698
call fcn.00406e3c
mov eax, dword [ebp - 4]
mov byte [eax + 0x660], 0
mov eax, dword [ebp - 4]
call fcn.0059cd48
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c8]
cmp byte [eax + 0x21], 0
je 0x59c3f7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c8]
cmp byte [eax + 0x20], 0
je 0x59c3f7
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x65c]
mov eax, dword [eax + 0x658]
add eax, 0x2e
adc edx, 0
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
cdq
call fcn.00408448
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x5c8]
add eax, dword [ecx + 0x18]
adc edx, dword [ecx + 0x1c]
add eax, 0x16
adc edx, 0
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x160]
movzx eax, word [eax + 0x18]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
add eax, 0x800
adc edx, 0
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x5c8]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c8]
cmp byte [eax + 0x21], 1
jne 0x59c3f7
xor eax, eax
push ebp
push 0x59c3c3
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 4]
call fcn.0058c7fc
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x7c]
call fcn.0041f1f8
lea eax, [ebp - 0x7c]
mov edx, 0x59cd28
call fcn.00407940
mov eax, dword [ebp - 0x7c]
call fcn.00597228
mov dword [ebp - 0x40], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59c3d4
mov eax, dword [ebp - 0x40]
xor edx, edx
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x5c8]
add eax, dword [ecx + 0x18]
adc edx, dword [ecx + 0x1c]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x5c8]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c8]
cmp byte [eax + 0x21], 1
jne 0x59c431
mov eax, dword [ebp - 4]
call fcn.0059d098
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x5c8]
sub eax, dword [ecx + 0x18]
sbb edx, dword [ecx + 0x1c]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x650], eax
mov dword [ecx + 0x654], edx
jmp 0x59c4b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c8]
cmp byte [eax + 0x21], 2
jne 0x59c4b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c8]
cmp dword [eax + 0x14], 0
jne 0x59c484
cmp dword [eax + 0x10], 0
jne 0x59c484
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c8]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x5c8]
sub eax, dword [ecx + 0x18]
sbb edx, dword [ecx + 0x1c]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x650], eax
mov dword [ecx + 0x654], edx
jmp 0x59c4b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c8]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x5c8]
sub eax, dword [ecx + 0x18]
sbb edx, dword [ecx + 0x1c]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x650], eax
mov dword [ecx + 0x654], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c8]
cmp byte [eax + 0x21], 0
je 0x59c4f6
mov eax, dword [ebp - 4]
fild qword [eax + 0x5a0]
fmul dword [0x59cd2c]
mov eax, dword [ebp - 4]
fistp qword [eax + 0x5a0]
wait
mov dword [ebp - 0x44], 0x8074b50
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x674]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x6a0], 0
jne 0x59c611
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x59c611
mov eax, dword [ebp - 4]
cmp byte [eax + 0x18c], 0
jne 0x59c55b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x59c611
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x10], 0
push ebp
mov eax, dword [ebp - 0x10]
call fcn.0059bf10
pop ecx
inc dword [ebp - 0x10]
dec dword [ebp - 0x50]
jne 0x59c544
jmp 0x59c611
push ebp
xor eax, eax
call fcn.0059bf10
pop ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x670], 0
je 0x59c57e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x188]
call fcn.00404ff0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x188], edx
mov eax, dword [ebp - 4]
cmp word [eax + 0x642], 0
je 0x59c601
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x38]
call fcn.00406a5c
mov eax, dword [ebp - 4]
cmp word [eax + 0x642], 0
je 0x59c5d5
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x188]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x644]
call dword [ebx + 0x640]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x188], 0
je 0x59c601
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x188]
call fcn.0044461c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x188], 0
jne 0x59c55b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x674]
call fcn.004445fc
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x690]
call fcn.005758ac
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x134]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x690]
call fcn.00575630
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x690]
call fcn.00575864
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68c]
mov eax, dword [eax + 0xc]
dec eax
test eax, eax
jl 0x59c7a1
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68c]
mov edx, dword [ebp - 0x10]
call fcn.0056fcf0
mov edx, dword [0x570d6c]
call fcn.0040522c
mov edx, dword [ebp - 4]
mov dword [edx + 0x694], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c8]
cmp byte [eax + 0x21], 0
je 0x59c74c
mov eax, dword [ebp - 4]
call fcn.0059d12c
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x694]
call fcn.00574b4c
cdq
cmp edx, dword [esp + 4]
jne 0x59c6df
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x59c74c
jmp 0x59c6e3
pop edx
pop eax
jle 0x59c74c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x674]
call fcn.004445fc
sub eax, dword [ebp - 0x30]
add dword [ebp - 0x28], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 4]
call fcn.0059d268
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x690]
xor edx, edx
call fcn.005756ac
cmp dword [ebp - 0x10], 0
jne 0x59c74c
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x690]
call fcn.005758ac
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x134]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x690]
call fcn.00575630
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x660]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x138]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x674]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x694]
call fcn.00573e58
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x690]
call fcn.00575670
mov edx, eax
inc edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x690]
call fcn.005756ac
inc dword [ebp - 0x10]
dec dword [ebp - 0x50]
jne 0x59c67f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x674]
call fcn.004445fc
sub eax, dword [ebp - 0x30]
add dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x690]
call fcn.00575804
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c8]
cmp byte [eax + 0x21], 0
je 0x59c80c
mov eax, dword [ebp - 4]
call fcn.0059d12c
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x690]
call fcn.00575558
cdq
cmp edx, dword [esp + 4]
jne 0x59c800
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x59c80c
jmp 0x59c804
pop edx
pop eax
jle 0x59c80c
mov eax, dword [ebp - 4]
call fcn.0059d268
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x134]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x690]
call fcn.005755b4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x674]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x690]
call fcn.00575044
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c8]
cmp byte [eax + 0x21], 1
jne 0x59c851
mov eax, dword [ebp - 4]
call fcn.0059d16c
mov byte [ebp - 0x11], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59ccd7
mov eax, dword [ebp - 4]
cmp byte [eax + 0x114], 0
jne 0x59c8da
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c8]
cmp byte [eax + 0x21], 0
je 0x59c8c1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x160]
call fcn.0057599c
cmp eax, 1
jne 0x59c8c1
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x674]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x48], 0x30304b50
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x674]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x674]
call fcn.00404ff0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x674], edx
cmp byte [ebp - 0x11], 0
je 0x59cbad
mov eax, dword [ebp - 4]
cmp byte [eax + 0x114], 0
jne 0x59c907
mov eax, dword [ebp - 4]
cmp byte [eax + 0x661], 0
jne 0x59c907
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0058c7fc
mov eax, dword [ebp - 4]
cmp byte [eax + 0x661], 0
jne 0x59c927
mov eax, dword [ebp - 4]
cmp byte [eax + 0x660], 0
je 0x59c927
mov eax, dword [ebp - 4]
call fcn.0058e55c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c8]
cmp byte [eax + 0x21], 2
jne 0x59c98d
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1b0]
call fcn.00406e84
push 2
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x134]
inc ecx
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0058fdf4
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 4]
call fcn.0058c7fc
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x698]
call fcn.0056cea4
jmp 0x59c9b0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x114], 0
jne 0x59c9b0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x661], 0
jne 0x59c9b0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x660], 0
je 0x59c9c6
mov eax, dword [ebp - 4]
call fcn.0059eff8
jmp 0x59c9dd
mov eax, dword [ebp - 4]
cmp byte [eax + 0x114], 0
je 0x59c9dd
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x674], edx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5b5], 0
je 0x59c9f0
push ebp
call fcn.0059b424
pop ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x661], 0
jne 0x59ca40
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x690]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x160]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x11c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x120], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x3c], 7
jmp 0x59ca65
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68c]
call fcn.00404ff0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x68c], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x120], edx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x114], 0
jne 0x59caa0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x661], 0
jne 0x59caa0
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 4]
call fcn.0058c7fc
mov eax, dword [ebp - 0x88]
call fcn.00577638
mov eax, dword [ebp - 4]
fstp qword [eax + 0x128]
wait
cmp byte [ebp - 0x19], 0
je 0x59cabf
mov eax, dword [ebp - 4]
cmp byte [eax + 0x661], 0
jne 0x59cabf
mov dl, byte [ebp - 0x19]
mov eax, dword [ebp - 4]
call fcn.0058f5a4
jmp 0x59cae8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x661], 0
jne 0x59cae8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x688]
mov edx, dword [ebp - 4]
mov dword [edx + 0x120], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x688], edx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x134]
inc edx
mov eax, dword [ebp - 4]
call fcn.0058dab8
mov eax, dword [ebp - 4]
cmp word [eax + 0xd2], 0
je 0x59cb1e
mov ebx, dword [ebp - 4]
mov ecx, 0x64
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xd4]
call dword [ebx + 0xd0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c8]
cmp byte [eax + 0x21], 0
je 0x59cc42
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c8]
cmp byte [eax + 0x20], 0
je 0x59cc42
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x160]
call fcn.00575578
test eax, eax
jbe 0x59cc42
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c8]
cmp byte [eax + 0x21], 1
jne 0x59cb76
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0058e214
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 4]
call fcn.0058c7fc
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x8c]
mov edx, 0x59cd3c
call fcn.0056d188
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 4]
call fcn.0059fc6c
jmp 0x59cc42
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68c]
call fcn.00404ff0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x68c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x698]
call fcn.0040774c
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x51], al
cmp byte [ebp - 0x51], 0
jne 0x59cc42
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x698]
call fcn.0040774c
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0xffffffff
je 0x59cc39
test byte [ebp - 0x57], 4
je 0x59cc39
test byte [ebp - 0x58], 0x10
je 0x59cc39
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x698]
call fcn.0040774c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x51], al
jmp 0x59cc42
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 0x19]
mov byte [eax + 0x3c], dl
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 0x1a]
mov byte [eax + 0x4d], dl
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x688]
call fcn.00404ff0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x688], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x690]
call fcn.00404ff0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x690], edx
mov eax, dword [ebp - 4]
call fcn.0058e1dc
mov eax, dword [ebp - 4]
cmp byte [eax + 0x114], 0
je 0x59ccab
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x138]
mov eax, dword [ebp - 4]
call fcn.0058ec4c
mov dl, byte [ebp - 0x39]
mov eax, dword [ebp - 4]
call fcn.0058dc6c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x44]
mov dl, byte [ebp - 0x49]
mov eax, dword [ebp - 4]
call fcn.0058dc98
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59cd11
lea eax, [ebp - 0x90]
mov edx, 0xd
call fcn.00406abc
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00406abc
lea eax, [ebp - 0x20]
call fcn.00406a5c
ret