Function at 0x596960
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 [0x616bac]
call fcn.00403e38
xor eax, eax
push ebp
push 0x596f02
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov dl, 0x63
call fcn.00564f50
call fcn.0064d630
mov dword [ebp - 0x28], eax
call fcn.0064d630
mov edi, eax
mov al, byte [0x596f10]
mov byte [ebp - 0x41], al
cmp byte [0x6733f9], 0
jne 0x5969d0
or byte [ebp - 0x41], 8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0x598]
mov ebx, dword [eax + 0x18]
dec ebx
cmp ebx, 0
jl 0x596e8c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0x598]
mov eax, dword [eax + 0x1c]
mov esi, dword [eax + ebx*4]
cmp byte [esi + 4], 0
jne 0x596e82
mov al, byte [esi + 5]
sub al, 0x43
je 0x596a19
sub al, 0x15
je 0x596e20
jmp 0x596e82
mov eax, dword [esi + 0x3c]
call fcn.00545684
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, esi
call fcn.005e5ad8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0xb0]
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.00551db0
cmp ax, 0xa
jne 0x596a7c
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
call fcn.00552c48
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 0x596a81
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x596aa0
push ebp
call fcn.00596828
pop ecx
test al, al
jne 0x596aa0
push ebp
mov eax, ebx
call fcn.005968f0
pop ecx
jmp 0x596e16
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
call dword [edx + 0xc]
dec eax
test eax, eax
jl 0x596e16
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 0x596e0c
mov edx, dword [ebp - 0x54]
mov edx, dword [edx]
cmp word [edx], 0x5c
je 0x596e0c
lea eax, [ebp - 0x34]
push eax
call fcn.00536b48
mov edx, dword [eax + 0x2c]
lea eax, [ebp - 0x78]
call fcn.00403a24
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x54]
mov edx, dword [edx]
call fcn.00620848
lea eax, [ebp - 0x7c]
mov edx, dword [0x66f728]
mov edx, dword [edx + 0x10c]
call fcn.00403438
lea eax, [ebp - 0x7c]
mov edx, 0x596f1c
call fcn.00403524
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
call fcn.00403a24
push dword [ebp - 0x78]
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x34]
call fcn.0054586c
push dword [ebp - 0x80]
push 0x596f24
lea eax, [esi + 0x3c]
mov edx, 3
call fcn.00403b78
xor esi, esi
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 0x74]
call fcn.004034e4
mov eax, dword [ebp - 0x7c]
mov edx, 0x596f30
call fcn.0040362c
je 0x596ba7
cmp dword [ebp - 0x74], 0
je 0x596ba7
mov eax, dword [ebp - 0x74]
call fcn.00403aa8
dec eax
jne 0x596c16
lea eax, [ebp - 0x78]
push eax
mov cx, 0x5c
mov dx, 0x2f
mov eax, dword [ebp - 0x34]
call fcn.00653ce4
mov eax, dword [ebp - 0x78]
call fcn.00654ea8
test al, al
je 0x596c16
mov eax, dword [ebp - 0x74]
call fcn.00403aa8
dec eax
jle 0x596bca
push dword [ebp - 0x70]
push 0x596f3c
push dword [ebp - 0x6c]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00403b78
lea eax, [ebp - 0x78]
push eax
mov cx, 0x5c
mov dx, 0x2f
mov eax, dword [ebp - 0x34]
call fcn.00653ce4
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x34]
call fcn.004038bc
mov eax, dword [ebp - 0x34]
call fcn.00654ea8
test al, al
je 0x596d81
mov al, byte [0x596f10]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov cl, 7
mov edx, dword [ebp - 0x34]
call fcn.005d3a24
mov esi, eax
jmp 0x596d81
mov eax, dword [0x66ebf8]
test byte [eax + 1], 2
je 0x596d81
mov edx, dword [ebp - 0x74]
mov eax, 0x596f44
call fcn.00654a6c
dec eax
jne 0x596d81
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x44]
cmp eax, 0xffffffff
jne 0x596d5e
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x70]
call fcn.00654a6c
push eax
mov eax, dword [ebp - 0x70]
call fcn.00403aa8
pop edx
add edx, eax
inc edx
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x34]
call fcn.006547d0
lea edx, [ebp - 0x40]
xor eax, eax
call fcn.0061cd68
cmp byte [0x6733f9], 0
jne 0x596cd1
cmp byte [0x66a86c], 0
je 0x596c96
call fcn.00506a54
call fcn.00503f84
push dword [ebp - 0x70]
push 0x596f54
push dword [ebp - 0x30]
lea eax, [ebp - 0x78]
mov edx, 3
call fcn.00403b78
mov edx, dword [ebp - 0x78]
lea ecx, [ebp - 0x7c]
mov eax, dword [0x66f9ec]
mov eax, dword [eax]
call fcn.00655be8
mov eax, dword [ebp - 0x7c]
push eax
call fcn.00506a54
xor edx, edx
pop ecx
call fcn.00503ed0
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
mov eax, dword [0x66fc38]
mov eax, dword [eax]
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.00437f04
test al, al
je 0x596d22
mov al, byte [0x596f10]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov cl, 7
mov edx, dword [ebp - 0x40]
call fcn.005d3a24
mov esi, eax
mov edx, dword [ebp - 0x40]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x30]
jmp 0x596d34
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 [0x6733f9], 0
jne 0x596d81
call fcn.00506a54
xor edx, edx
call fcn.00503f2c
cmp byte [0x66a86c], 0
je 0x596d81
call fcn.00506a54
call fcn.00503fd4
jmp 0x596d81
mov edx, dword [edi + 0x20]
lea eax, [edx + eax*4]
cmp dword [eax], 0
je 0x596d81
mov dl, byte [0x596f10]
push edx
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov cl, 7
call fcn.005d3a24
mov esi, eax
test esi, esi
je 0x596e16
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
call fcn.00552c48
mov dword [ebp - 0x48], eax
cmp dword [ebp - 4], 0
jne 0x596dd8
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.0064e528
push esi
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x48]
mov cl, 0x1b
mov edx, dword [ebp - 0x48]
call fcn.00626fd8
jmp 0x596e01
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.005f7f00
mov eax, dword [ebp - 0x58]
mov dword [eax + 1], esi
push ebp
mov eax, ebx
call fcn.005968f0
pop ecx
jmp 0x596e16
inc dword [ebp - 0x4c]
dec eax
jne 0x596ab9
mov eax, dword [ebp - 0x50]
call fcn.004028c0
jmp 0x596e82
call fcn.00536b48
cmp dword [eax + 0x2c], 0
je 0x596e82
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x34]
mov eax, dword [esi + 0x3c]
call fcn.005458bc
cmp dword [ebp - 0x34], 0
je 0x596e82
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00536b48
mov edx, dword [eax + 0x2c]
lea eax, [ebp - 0x78]
call fcn.00403a24
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x34]
call fcn.00620848
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
call fcn.005459f8
mov edx, dword [ebp - 0x78]
lea eax, [esi + 0x3c]
call fcn.004038bc
dec ebx
cmp ebx, 0xffffffff
jne 0x5969e9
mov ebx, dword [edi + 0x24]
dec ebx
cmp ebx, 0
jl 0x596ea7
mov eax, dword [edi + 0x18]
mov eax, dword [eax + ebx*4]
push eax
call sub.kernel32.dll_DeleteFileW
dec ebx
cmp ebx, 0xffffffff
jne 0x596e95
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.00565004
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x596f09
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 [0x616bac]
call fcn.00403f00
lea eax, [ebp - 0x40]
mov edx, 5
call fcn.00403898
ret