Function at 0x403198
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 1], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
cmp dword [ebp + 8], ebx
je 0x4031db
push dword [ebp + 8]
call fcn.004029ba
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x403561
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x40dee6
push ebx
call fcn.0040d378
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x403561
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 1]
imul eax, eax, 0x468
push 1
push eax
call fcn.0040db38
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x403232
mov eax, 0x8007000e
push eax
push 0x353
push 0x40def8
mov dword [ebp - 8], eax
call fcn.0040d716
jmp 0x40357c
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 1]
imul ecx, ecx, 0xa8
lea edi, [ecx + eax + 4]
mov byte [ebp + 0xb], bl
cmp byte [eax + 2], bl
jbe 0x403288
movzx esi, byte [ebp + 0xb]
shl esi, 4
push 1
add esi, edi
push dword [esi + 0xc]
push dword [ebp + 0x10]
call fcn.00402a70
test eax, eax
je 0x40327a
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.0040278c
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x403561
inc byte [ebp + 0xb]
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp + 0xb]
cmp cl, byte [eax + 2]
jb 0x40324b
cmp dword [ebp - 0xc], ebx
jne 0x4032d1
mov byte [ebp + 0xb], bl
cmp byte [eax + 2], bl
jbe 0x4032d1
movzx esi, byte [ebp + 0xb]
shl esi, 4
push ebx
add esi, edi
push dword [esi + 0xc]
push dword [ebp + 0x10]
call fcn.00402a70
test eax, eax
je 0x4032c3
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.0040278c
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x403561
inc byte [ebp + 0xb]
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp + 0xb]
cmp cl, byte [eax + 2]
jb 0x403295
cmp dword [ebp + 0x14], ebx
je 0x4032e2
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x10]
mov byte [ebp + 0xb], bl
cmp byte [eax + 1], bl
jbe 0x40355c
mov ecx, dword [ebp + 0x18]
movzx esi, byte [ebp - 1]
mov dword [ebp - 0x2c], ecx
imul esi, esi, 0x468
mov ecx, dword [ebp + 0x1c]
add esi, dword [ebp - 0x1c]
mov dword [ebp + 0x10], ecx
movzx ecx, byte [ebp + 0xb]
imul ecx, ecx, 0xa8
lea edi, [ecx + eax + 4]
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x403321
mov eax, 0x40e03e
push ebx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040d122
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x403561
push 0x27
push esi
lea eax, [edi + 0x8c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x403561
test dword [edi + 0xa4], 0x100
je 0x403367
mov dword [ebp + 0x10], 6
jmp 0x4033aa
cmp dword [ebp + 0x1c], 7
je 0x40338e
lea eax, [ebp + 0x10]
push eax
push dword [edi + 0xa0]
push dword [edi + 0x9c]
push esi
call fcn.00402ce6
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x403561
cmp dword [ebp + 0x10], ebx
je 0x40354a
cmp dword [ebp + 0x10], 4
jne 0x4033aa
test byte [edi + 0xa4], 0x20
je 0x40364d
inc byte [ebp - 1]
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.00402db4
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x403561
push dword [ebp - 0x14]
lea eax, [esi + 0x4e]
push 0x104
push eax
mov dword [ebp - 0x34], 1
call fcn.00402ed0
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x403561
cmp dword [ebp - 0xc], ebx
je 0x403467
test byte [edi + 0xa4], 0x80
je 0x403467
push ebx
push 0x40e108
lea eax, [ebp - 0x18]
push eax
call fcn.0040d19c
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x403561
mov eax, dword [edi + 0xa4]
test al, 4
je 0x403449
lea ecx, [ebp - 0x28]
push ecx
and eax, 1
push eax
push dword [ebp - 0xc]
push edi
call fcn.00403094
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x403561
cmp dword [ebp - 0xc], ebx
je 0x403443
push dword [ebp - 0xc]
call fcn.0040cbe6
mov dword [ebp - 0xc], ebx
push ebx
push dword [ebp - 0x28]
jmp 0x40344d
push ebx
push dword [ebp - 0xc]
call fcn.0040d71a
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040d19c
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x403561
mov eax, dword [edi + 0xa4]
test al, 4
je 0x4034bf
lea ecx, [ebp - 0x24]
push ecx
and eax, 1
push eax
push dword [ebp - 0x14]
push edi
call fcn.00402f90
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x403561
mov eax, dword [ebp - 0x24]
push eax
mov dword [ebp - 0x30], eax
push 0x104
lea eax, [esi + 0x256]
push eax
mov dword [ebp - 0x34], ebx
call fcn.00402ed0
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x403561
mov dword [esi + 0x460], 1
jmp 0x4034c5
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 0xa4]
test al, 8
jne 0x4034e1
mov dword [ebp - 0x2c], 3
test al, 0x10
je 0x4034e1
mov dword [ebp - 0x2c], 0x43
mov ecx, eax
and ecx, 0x200
push ecx
and eax, 0x10
push eax
push dword [ebp - 0x2c]
add edi, 0xc
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x30]
push edi
push esi
call fcn.00402ae6
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x403561
xor eax, eax
inc eax
cmp dword [ebp - 8], eax
jne 0x403536
lea edi, [esi + 0x460]
cmp dword [edi], ebx
je 0x40353c
add esi, 0x256
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov word [esi], ax
mov dword [edi], ebx
jmp 0x40353c
mov dword [esi + 0x464], eax
cmp dword [ebp - 0x34], ebx
je 0x40354a
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc byte [ebp + 0xb]
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp + 0xb]
cmp cl, byte [eax + 1]
jb 0x4032ee
cmp dword [ebp - 8], ebx
jge 0x4035d9
cmp dword [ebp - 8], 0x80070bc2
je 0x4035d9
cmp dword [ebp - 8], 0x80070bc3
je 0x4035d9
cmp dword [ebp - 8], 0x80070669
je 0x4035d9
cmp byte [ebp - 1], bl
jbe 0x4035d9
movzx eax, byte [ebp - 1]
mov esi, dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0x256
mov dword [ebp + 8], eax
cmp dword [esi + 0x20e], ebx
je 0x4035b8
push ebx
push 1
push 3
push 7
push dword [ebp + 0x14]
lea eax, [esi - 0x256]
push ebx
push ebx
push ebx
push eax
call fcn.00402ae6
cmp word [esi], bx
je 0x4035c0
push esi
call edi
lea eax, [esi - 0x208]
cmp word [eax], bx
je 0x4035ce
push eax
call edi
add esi, 0x468
dec dword [ebp + 8]
jne 0x403597
cmp dword [ebp - 0xc], ebx
je 0x4035e7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x1c], ebx
je 0x4035f4
push dword [ebp - 0x1c]
call fcn.0040db92
cmp dword [ebp - 0x20], ebx
je 0x403602
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x14], ebx
je 0x40360f
push dword [ebp - 0x14]
call fcn.0040cbe6
cmp dword [ebp - 0xc], ebx
je 0x40361c
push dword [ebp - 0xc]
call fcn.0040cbe6
cmp dword [ebp - 0x24], ebx
je 0x403629
push dword [ebp - 0x24]
call fcn.0040cbe6
cmp dword [ebp - 0x28], ebx
je 0x403636
push dword [ebp - 0x28]
call fcn.0040cbe6
cmp dword [ebp - 0x18], ebx
pop edi
pop esi
pop ebx
je 0x403646
push dword [ebp - 0x18]
call fcn.0040cbe6
mov eax, dword [ebp - 8]
leave
ret 0x18
push ebx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push 0x400
mov eax, 0x80070666
push eax
push ebx
push 0x1100
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jbe 0x40357c
push ebx
push 0x10
push 0x40df4a
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxExW]
jmp 0x40357c