Function at 0x406749
Capabilities:
Delete file

Disassembly:
push 0x50
mov eax, 0x435454
call fcn.0043328e
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x54], edx
test eax, eax
jne 0x40677c
mov dword [esi + 0x26c], 0xa0000037
jmp 0x406a24
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
xor ebx, ebx
mov edx, 0x43bf54
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
lea edi, [ebp - 0x2c]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov dword [esi + 0x26c], ebx
test ecx, ecx
je 0x4067e6
push ecx
lea ecx, [ebp - 0x20]
call fcn.00418a6b
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4067e6
mov eax, dword [ebp - 0x20]
push 0x5c
movzx eax, word [eax + ecx*2 - 2]
pop ecx
cmp ax, cx
je 0x4067e6
cmp eax, 0x2f
je 0x4067e6
push ecx
lea ecx, [ebp - 0x20]
call fcn.00418b16
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp - 0x4c]
call fcn.00405ea7
cmp dword [esi + 0x264], ebx
je 0x406806
mov dword [esi + 0x268], ebx
jmp 0x406a12
xor eax, eax
mov dword [ebp - 0x48], ebx
lea edi, [eax + 1]
mov eax, ebx
mov dword [ebp - 0x40], edi
cmp dword [ebp + 0xc], eax
jbe 0x406a09
cmp dword [esi + 0x274], ebx
jne 0x406a12
cmp dword [esi + 0x26c], 0xa0000054
je 0x406a12
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + eax*4]
lea ecx, [esi + 0x18]
push eax
mov dword [ebp - 0x44], eax
call fcn.004128a9
mov edi, eax
test edi, edi
je 0x406a3b
push dword [ebp - 0x54]
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x2c]
push dword [edi]
call fcn.00413c60
pop ecx
pop ecx
test eax, eax
je 0x406a2c
mov eax, dword [edi + 0x24]
xor ecx, ecx
shr eax, 4
inc ecx
and eax, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x50], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x3c], ebx
push eax
push dword [ebp - 0x44]
mov ecx, esi
mov dword [ebp - 0x14], ebx
push edi
movlpd qword [ebp - 0x5c], xmm0
call fcn.00405d9f
test eax, eax
je 0x4069ef
test dword [edi + 0x24], 0x400
je 0x4068b8
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x44]
call dword [eax + 0x70]
push dword [ebp - 0x38]
lea eax, [ebp - 0x14]
push dword [esi + 4]
push eax
push dword [ebp - 0x50]
push dword [esi + 0x25c]
push dword [ebp - 0x2c]
push edi
push dword [esi + 0x260]
call dword [esi + 0x258]
mov ecx, eax
add esp, 0x20
mov dword [ebp - 0x30], ecx
test ecx, ecx
jne 0x406941
push edi
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00406695
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edi, dword [ebp - 0x40]
cmp eax, 0xa0000059
cmovne edi, ecx
mov dword [ebp - 0x40], edi
cmp dword [ebp - 0x48], ecx
jne 0x406931
cmp eax, 0xa0000062
jne 0x406931
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4069ef
mov ecx, eax
call fcn.004130aa
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x406a12
mov eax, dword [ebp - 0x14]
cmp eax, 0xa0000017
je 0x406a12
jmp 0x4069ef
cmp dword [ebp - 0x38], 0
je 0x406965
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, dword [ebp - 0x30]
test eax, eax
je 0x406965
mov eax, dword [ecx]
call dword [eax + 0x38]
push eax
call fcn.004254bd
pop ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x50], 0
jne 0x4069b1
lea eax, [ebp - 0x5c]
push eax
push ecx
push edi
push dword [ebp - 0x44]
mov ecx, esi
call fcn.00406a47
test eax, eax
jne 0x4069b1
mov eax, dword [edi + 0x18]
or eax, dword [edi + 0x1c]
mov dword [ebp - 0x40], ebx
je 0x4069b1
mov eax, dword [ebp - 0x5c]
or eax, dword [ebp - 0x58]
jne 0x406995
inc eax
jmp 0x4069ae
cmp dword [edi + 0x20], 0x10
jne 0x4069b1
cmp dword [esi + 0x26c], 0xa0000060
mov eax, dword [ebp - 0x34]
push 1
pop ecx
cmove eax, ecx
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x30]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
cmp dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x3c]
je 0x4069e4
test eax, eax
je 0x4069d3
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x3c]
jmp 0x4069e8
cmp dword [ebp - 0x38], 0
je 0x4069ef
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4069ef
test eax, eax
je 0x4069ef
push eax
call fcn.004243e2
pop ecx
mov ecx, esi
call fcn.00405ff2
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp eax, dword [ebp + 0xc]
jb 0x40681c
mov edi, dword [ebp - 0x40]
mov ecx, esi
call fcn.0040665a
mov ebx, edi
lea ecx, [ebp - 0x2c]
call fcn.00418a44
lea ecx, [ebp - 0x20]
call fcn.00418a44
mov eax, ebx
call fcn.00433238
ret 0x10
push edi
push 0xa0000050
mov ecx, esi
call fcn.00406695
jmp 0x406a12
mov dword [esi + 0x26c], 0xa0000037
jmp 0x406a12