Function at 0x597df8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x74]
mov edx, dword [0x61ddbc]
call fcn.00403e48
xor eax, eax
push ebp
push 0x5983a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov dl, 0x63
call fcn.00565be8
call fcn.006562d0
mov dword [ebp - 0x28], eax
call fcn.006562d0
mov edi, eax
mov al, byte [0x5983b8]
mov byte [ebp - 0x41], al
cmp byte [0x6752d5], 0
jne 0x597e68
or byte [ebp - 0x41], 8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0x590]
mov ebx, dword [eax + 0x18]
dec ebx
cmp ebx, 0
jl 0x598331
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0x590]
mov eax, dword [eax + 0x1c]
mov esi, dword [eax + ebx*4]
cmp byte [esi + 4], 0
jne 0x598327
mov al, byte [esi + 5]
sub al, 0x43
je 0x597eb1
sub al, 0x15
je 0x5982c5
jmp 0x598327
mov eax, dword [esi + 0x3c]
call fcn.00545d08
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, esi
call fcn.005ea370
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0xa8]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
call fcn.00552428
cmp ax, 0xa
jne 0x597f14
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
call fcn.0055325c
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 0x48]
add eax, dword [edx + 4]
add eax, 2
mov eax, dword [eax + 1]
mov dword [ebp - 4], eax
jmp 0x597f19
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x597f38
push ebp
call fcn.00597bd0
pop ecx
test al, al
jne 0x597f38
push ebp
mov eax, ebx
call fcn.00597d88
pop ecx
jmp 0x5982bb
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
call dword [edx + 0xc]
dec eax
test eax, eax
jl 0x5982bb
inc eax
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 0x50]
mov edx, dword [edx + 0x20]
mov ecx, dword [ebp - 0x4c]
lea edx, [edx + ecx*4]
mov dword [ebp - 0x54], edx
mov edx, dword [ebp - 0x54]
cmp dword [edx], 0
je 0x5982b1
mov edx, dword [ebp - 0x54]
mov edx, dword [edx]
cmp word [edx], 0x5c
je 0x5982b1
lea eax, [ebp - 0x34]
push eax
call fcn.00535954
mov edx, dword [eax + 0x30]
lea eax, [ebp - 0x78]
call fcn.00403a34
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x54]
mov edx, dword [edx]
call fcn.00629e18
lea eax, [ebp - 0x7c]
mov edx, dword [0x672560]
mov edx, dword [edx + 0x10c]
call fcn.00403438
lea eax, [ebp - 0x7c]
mov edx, 0x5983c4
call fcn.00403524
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
call fcn.00403a34
push dword [ebp - 0x78]
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x34]
call fcn.00545ef0
push dword [ebp - 0x80]
push 0x5983cc
lea eax, [esi + 0x3c]
mov edx, 3
call fcn.00403b88
xor esi, esi
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 0x74]
call fcn.004034e4
mov eax, dword [ebp - 0x7c]
mov edx, 0x5983d8
call fcn.0040362c
je 0x59803f
cmp dword [ebp - 0x74], 0
je 0x59803f
mov eax, dword [ebp - 0x74]
call fcn.00403ab8
dec eax
jne 0x5980ae
lea eax, [ebp - 0x78]
push eax
mov cx, 0x5c
mov dx, 0x2f
mov eax, dword [ebp - 0x34]
call fcn.0065ba18
mov eax, dword [ebp - 0x78]
call fcn.0065cc54
test al, al
je 0x5980ae
mov eax, dword [ebp - 0x74]
call fcn.00403ab8
dec eax
jle 0x598062
push dword [ebp - 0x70]
push 0x5983e4
push dword [ebp - 0x6c]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00403b88
lea eax, [ebp - 0x78]
push eax
mov cx, 0x5c
mov dx, 0x2f
mov eax, dword [ebp - 0x34]
call fcn.0065ba18
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x34]
call fcn.004038bc
mov eax, dword [ebp - 0x34]
call fcn.0065cc54
test al, al
je 0x598226
mov al, byte [0x5983b8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov cl, 6
mov edx, dword [ebp - 0x34]
call fcn.005d7b3c
mov esi, eax
jmp 0x598226
mov eax, dword [0x672428]
test byte [eax + 0x209], 2
je 0x598226
mov edx, dword [ebp - 0x74]
mov eax, 0x5983ec
call fcn.0065c750
dec eax
jne 0x598226
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x44]
cmp eax, 0xffffffff
jne 0x5981ff
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x70]
call fcn.0065c750
mov esi, eax
mov eax, dword [ebp - 0x70]
call fcn.00403ab8
add esi, eax
mov edx, esi
inc edx
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x34]
call fcn.0065c4b0
lea edx, [ebp - 0x40]
xor eax, eax
call fcn.006265c4
cmp byte [0x6752d5], 0
jne 0x59816c
cmp byte [0x66dec4], 0
je 0x598133
call fcn.00501d74
call fcn.004fecb8
push dword [ebp - 0x70]
push 0x5983fc
push dword [ebp - 0x30]
lea eax, [ebp - 0x78]
mov edx, 3
call fcn.00403b88
mov edx, dword [ebp - 0x78]
lea ecx, [ebp - 0x7c]
mov eax, 0x598400
call fcn.0065d968
mov eax, dword [ebp - 0x7c]
push eax
call fcn.00501d74
xor edx, edx
pop ecx
call fcn.004fec24
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x40]
push eax
call fcn.00501d74
mov eax, dword [eax + 0x268]
push eax
mov al, byte [ebp - 0x41]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x74]
call fcn.0048ea4c
test al, al
je 0x5981c1
mov al, byte [0x5983b8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov cl, 6
mov edx, dword [ebp - 0x40]
call fcn.005d7b3c
mov esi, eax
mov edx, dword [ebp - 0x40]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x30]
jmp 0x5981d5
xor esi, esi
xor edx, edx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_DeleteFileW
cmp byte [0x6752d5], 0
jne 0x598226
call fcn.00501d74
xor edx, edx
call fcn.004fec6c
cmp byte [0x66dec4], 0
je 0x598226
call fcn.00501d74
call fcn.004fed08
jmp 0x598226
mov edx, dword [edi + 0x20]
lea eax, [edx + eax*4]
cmp dword [eax], 0
jne 0x59820e
xor esi, esi
jmp 0x598226
mov dl, byte [0x5983b8]
push edx
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov cl, 6
call fcn.005d7b3c
mov esi, eax
test esi, esi
je 0x5982bb
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
call fcn.0055325c
mov dword [ebp - 0x48], eax
cmp dword [ebp - 4], 0
jne 0x59827d
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x48]
mov edx, dword [eax + 4]
add edx, dword [ebp - 0x48]
cmp word [edx], 0
sete dl
and edx, 0x7f
mov ecx, edx
shl ecx, 3
sub ecx, edx
add ecx, 2
mov edx, dword [ebp - 0x48]
call fcn.006567f8
push esi
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x48]
mov cl, 0x1b
mov edx, dword [ebp - 0x48]
call fcn.006305f4
jmp 0x5982a6
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x48]
add eax, 2
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax + 1]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.005fd17c
mov eax, dword [ebp - 0x58]
mov dword [eax + 1], esi
push ebp
mov eax, ebx
call fcn.00597d88
pop ecx
jmp 0x5982bb
inc dword [ebp - 0x4c]
dec eax
jne 0x597f51
mov eax, dword [ebp - 0x50]
call fcn.004028c0
jmp 0x598327
call fcn.00535954
cmp dword [eax + 0x30], 0
je 0x598327
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x34]
mov eax, dword [esi + 0x3c]
call fcn.00545f40
cmp dword [ebp - 0x34], 0
je 0x598327
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00535954
mov edx, dword [eax + 0x30]
lea eax, [ebp - 0x78]
call fcn.00403a34
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x34]
call fcn.00629e18
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
call fcn.0054607c
mov edx, dword [ebp - 0x78]
lea eax, [esi + 0x3c]
call fcn.004038bc
dec ebx
cmp ebx, 0xffffffff
jne 0x597e81
mov ebx, dword [edi + 0x24]
dec ebx
cmp ebx, 0
jl 0x59834c
mov eax, dword [edi + 0x18]
mov eax, dword [eax + ebx*4]
push eax
call sub.kernel32.dll_DeleteFileW
dec ebx
cmp ebx, 0xffffffff
jne 0x59833a
mov eax, edi
call fcn.004028c0
mov eax, dword [ebp - 0x28]
call fcn.004028c0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00565c80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5983ae
lea eax, [ebp - 0x80]
call fcn.00403880
lea eax, [ebp - 0x7c]
call fcn.00403274
lea eax, [ebp - 0x78]
call fcn.00403880
lea eax, [ebp - 0x74]
mov edx, dword [0x61ddbc]
call fcn.00403f10
lea eax, [ebp - 0x40]
mov edx, 5
call fcn.00403898
ret