Function at 0x599918
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 [0x619f3c]
call fcn.00403e48
xor eax, eax
push ebp
push 0x599eba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov dl, 0x63
call fcn.00567f08
call fcn.00650ca0
mov dword [ebp - 0x28], eax
call fcn.00650ca0
mov edi, eax
mov al, byte [0x599ec8]
mov byte [ebp - 0x41], al
cmp byte [0x6763f9], 0
jne 0x599988
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 0x599e44
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 0x599e3a
mov al, byte [esi + 5]
sub al, 0x43
je 0x5999d1
sub al, 0x15
je 0x599dd8
jmp 0x599e3a
mov eax, dword [esi + 0x3c]
call fcn.0054863c
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, esi
call fcn.005e8aa4
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.00554d68
cmp ax, 0xa
jne 0x599a34
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
call fcn.00555c00
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 0x599a39
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x599a58
push ebp
call fcn.005997e0
pop ecx
test al, al
jne 0x599a58
push ebp
mov eax, ebx
call fcn.005998a8
pop ecx
jmp 0x599dce
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
call dword [edx + 0xc]
dec eax
test eax, eax
jl 0x599dce
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 0x599dc4
mov edx, dword [ebp - 0x54]
mov edx, dword [edx]
cmp word [edx], 0x5c
je 0x599dc4
lea eax, [ebp - 0x34]
push eax
call fcn.0053999c
mov edx, dword [eax + 0x2c]
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.00623d80
lea eax, [ebp - 0x7c]
mov edx, dword [0x672790]
mov edx, dword [edx + 0x10c]
call fcn.00403438
lea eax, [ebp - 0x7c]
mov edx, 0x599ed4
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.00548824
push dword [ebp - 0x80]
push 0x599edc
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, 0x599ee8
call fcn.0040362c
je 0x599b5f
cmp dword [ebp - 0x74], 0
je 0x599b5f
mov eax, dword [ebp - 0x74]
call fcn.00403ab8
dec eax
jne 0x599bce
lea eax, [ebp - 0x78]
push eax
mov cx, 0x5c
mov dx, 0x2f
mov eax, dword [ebp - 0x34]
call fcn.0065730c
mov eax, dword [ebp - 0x78]
call fcn.006584d0
test al, al
je 0x599bce
mov eax, dword [ebp - 0x74]
call fcn.00403ab8
dec eax
jle 0x599b82
push dword [ebp - 0x70]
push 0x599ef4
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.0065730c
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x34]
call fcn.004038bc
mov eax, dword [ebp - 0x34]
call fcn.006584d0
test al, al
je 0x599d39
mov al, byte [0x599ec8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov cl, 7
mov edx, dword [ebp - 0x34]
call fcn.005d69f8
mov esi, eax
jmp 0x599d39
mov eax, dword [0x671c60]
test byte [eax + 1], 2
je 0x599d39
mov edx, dword [ebp - 0x74]
mov eax, 0x599efc
call fcn.00658094
dec eax
jne 0x599d39
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x44]
cmp eax, 0xffffffff
jne 0x599d16
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x70]
call fcn.00658094
push eax
mov eax, dword [ebp - 0x70]
call fcn.00403ab8
pop edx
add edx, eax
inc edx
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x34]
call fcn.00657df8
lea edx, [ebp - 0x40]
xor eax, eax
call fcn.006202a0
cmp byte [0x6763f9], 0
jne 0x599c89
cmp byte [0x66d860], 0
je 0x599c4e
call fcn.005093e8
call fcn.00506928
push dword [ebp - 0x70]
push 0x599f0c
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, dword [0x672a4c]
mov eax, dword [eax]
call fcn.00659210
mov eax, dword [ebp - 0x7c]
push eax
call fcn.005093e8
xor edx, edx
pop ecx
call fcn.0050687c
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 [0x672c9c]
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.00438acc
test al, al
je 0x599cda
mov al, byte [0x599ec8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov cl, 7
mov edx, dword [ebp - 0x40]
call fcn.005d69f8
mov esi, eax
mov edx, dword [ebp - 0x40]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x30]
jmp 0x599cec
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 [0x6763f9], 0
jne 0x599d39
call fcn.005093e8
xor edx, edx
call fcn.005068d4
cmp byte [0x66d860], 0
je 0x599d39
call fcn.005093e8
call fcn.00506978
jmp 0x599d39
mov edx, dword [edi + 0x20]
lea eax, [edx + eax*4]
cmp dword [eax], 0
je 0x599d39
mov dl, byte [0x599ec8]
push edx
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov cl, 7
call fcn.005d69f8
mov esi, eax
test esi, esi
je 0x599dce
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
call fcn.00555c00
mov dword [ebp - 0x48], eax
cmp dword [ebp - 4], 0
jne 0x599d90
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.00651b84
push esi
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x48]
mov cl, 0x1b
mov edx, dword [ebp - 0x48]
call fcn.0062a4b4
jmp 0x599db9
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.005faecc
mov eax, dword [ebp - 0x58]
mov dword [eax + 1], esi
push ebp
mov eax, ebx
call fcn.005998a8
pop ecx
jmp 0x599dce
inc dword [ebp - 0x4c]
dec eax
jne 0x599a71
mov eax, dword [ebp - 0x50]
call fcn.004028c0
jmp 0x599e3a
call fcn.0053999c
cmp dword [eax + 0x2c], 0
je 0x599e3a
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x34]
mov eax, dword [esi + 0x3c]
call fcn.00548874
cmp dword [ebp - 0x34], 0
je 0x599e3a
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0053999c
mov edx, dword [eax + 0x2c]
lea eax, [ebp - 0x78]
call fcn.00403a34
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x34]
call fcn.00623d80
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
call fcn.005489b0
mov edx, dword [ebp - 0x78]
lea eax, [esi + 0x3c]
call fcn.004038bc
dec ebx
cmp ebx, 0xffffffff
jne 0x5999a1
mov ebx, dword [edi + 0x24]
dec ebx
cmp ebx, 0
jl 0x599e5f
mov eax, dword [edi + 0x18]
mov eax, dword [eax + ebx*4]
push eax
call sub.kernel32.dll_DeleteFileW
dec ebx
cmp ebx, 0xffffffff
jne 0x599e4d
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.00567fbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x599ec1
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 [0x619f3c]
call fcn.00403f10
lea eax, [ebp - 0x40]
mov edx, 5
call fcn.00403898
ret