Function at 0x59125c
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 [0x613f0c]
call fcn.00403e48
xor eax, eax
push ebp
push 0x5917fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov dl, 0x63
call fcn.0055f6b0
call fcn.0064d744
mov dword [ebp - 0x28], eax
call fcn.0064d744
mov edi, eax
mov al, byte [0x59180c]
mov byte [ebp - 0x41], al
cmp byte [0x66c3dd], 0
jne 0x5912cc
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 0x591786
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 0x59177c
mov al, byte [esi + 5]
sub al, 0x43
je 0x591315
sub al, 0x15
je 0x59171a
jmp 0x59177c
mov eax, dword [esi + 0x3c]
call fcn.0053fbe8
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, esi
call fcn.005e18f4
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.0054c314
cmp ax, 0xa
jne 0x591378
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
call fcn.0054d1ac
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 0x59137d
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x59139c
push ebp
call fcn.00591124
pop ecx
test al, al
jne 0x59139c
push ebp
mov eax, ebx
call fcn.005911ec
pop ecx
jmp 0x591710
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
call dword [edx + 0xc]
dec eax
test eax, eax
jl 0x591710
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 0x591706
mov edx, dword [ebp - 0x54]
mov edx, dword [edx]
cmp word [edx], 0x5c
je 0x591706
lea eax, [ebp - 0x34]
push eax
call fcn.00530afc
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.006203b4
lea eax, [ebp - 0x7c]
mov edx, dword [0x6696a8]
mov edx, dword [edx + 0x10c]
call fcn.00403438
lea eax, [ebp - 0x7c]
mov edx, 0x591818
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.0053fdd0
push dword [ebp - 0x80]
push 0x591820
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, 0x59182c
call fcn.0040362c
je 0x5914a3
cmp dword [ebp - 0x74], 0
je 0x5914a3
mov eax, dword [ebp - 0x74]
call fcn.00403ab8
dec eax
jne 0x591512
lea eax, [ebp - 0x78]
push eax
mov cx, 0x5c
mov dx, 0x2f
mov eax, dword [ebp - 0x34]
call fcn.006533f0
mov eax, dword [ebp - 0x78]
call fcn.00654560
test al, al
je 0x591512
mov eax, dword [ebp - 0x74]
call fcn.00403ab8
dec eax
jle 0x5914c6
push dword [ebp - 0x70]
push 0x591838
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.006533f0
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x34]
call fcn.004038bc
mov eax, dword [ebp - 0x34]
call fcn.00654560
test al, al
je 0x59167b
mov al, byte [0x59180c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov cl, 7
mov edx, dword [ebp - 0x34]
call fcn.005cf14c
mov esi, eax
jmp 0x59167b
mov eax, dword [0x669208]
test byte [eax + 1], 2
je 0x59167b
mov edx, dword [ebp - 0x74]
mov eax, 0x591840
call fcn.00654124
dec eax
jne 0x59167b
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x44]
cmp eax, 0xffffffff
jne 0x591658
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x70]
call fcn.00654124
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.00653e88
lea edx, [ebp - 0x40]
xor eax, eax
call fcn.0061c8e8
cmp byte [0x66c3dd], 0
jne 0x5915cb
cmp byte [0x66506c], 0
je 0x591592
call fcn.004fe288
call fcn.004fb5f8
push dword [ebp - 0x70]
push 0x591850
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, 0x591854
call fcn.006552a0
mov eax, dword [ebp - 0x7c]
push eax
call fcn.004fe288
xor edx, edx
pop ecx
call fcn.004fb54c
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 [0x6698c0]
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.004570bc
test al, al
je 0x59161c
mov al, byte [0x59180c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov cl, 7
mov edx, dword [ebp - 0x40]
call fcn.005cf14c
mov esi, eax
mov edx, dword [ebp - 0x40]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x30]
jmp 0x59162e
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 [0x66c3dd], 0
jne 0x59167b
call fcn.004fe288
xor edx, edx
call fcn.004fb5a4
cmp byte [0x66506c], 0
je 0x59167b
call fcn.004fe288
call fcn.004fb648
jmp 0x59167b
mov edx, dword [edi + 0x20]
lea eax, [edx + eax*4]
cmp dword [eax], 0
je 0x59167b
mov dl, byte [0x59180c]
push edx
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov cl, 7
call fcn.005cf14c
mov esi, eax
test esi, esi
je 0x591710
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
call fcn.0054d1ac
mov dword [ebp - 0x48], eax
cmp dword [ebp - 4], 0
jne 0x5916d2
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.0064dd58
push esi
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x48]
mov cl, 0x1b
mov edx, dword [ebp - 0x48]
call fcn.00626d44
jmp 0x5916fb
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.005f41c4
mov eax, dword [ebp - 0x58]
mov dword [eax + 1], esi
push ebp
mov eax, ebx
call fcn.005911ec
pop ecx
jmp 0x591710
inc dword [ebp - 0x4c]
dec eax
jne 0x5913b5
mov eax, dword [ebp - 0x50]
call fcn.004028c0
jmp 0x59177c
call fcn.00530afc
cmp dword [eax + 0x2c], 0
je 0x59177c
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x34]
mov eax, dword [esi + 0x3c]
call fcn.0053fe20
cmp dword [ebp - 0x34], 0
je 0x59177c
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00530afc
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.006203b4
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
call fcn.0053ff5c
mov edx, dword [ebp - 0x78]
lea eax, [esi + 0x3c]
call fcn.004038bc
dec ebx
cmp ebx, 0xffffffff
jne 0x5912e5
mov ebx, dword [edi + 0x24]
dec ebx
cmp ebx, 0
jl 0x5917a1
mov eax, dword [edi + 0x18]
mov eax, dword [eax + ebx*4]
push eax
call sub.kernel32.dll_DeleteFileW
dec ebx
cmp ebx, 0xffffffff
jne 0x59178f
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.0055f764
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x591803
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 [0x613f0c]
call fcn.00403f10
lea eax, [ebp - 0x40]
mov edx, 5
call fcn.00403898
ret