Function at 0x10020496
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x60], edx
push 2
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], edi
call fcn.1000b514
xor eax, eax
mov dword [ebp - 8], 0x5c8094a
mov dword [ebp - 8], eax
jmp 0x100204d2
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + edx*4], 0x9f9b
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x100204c2
xor ebx, ebx
mov dword [ebp - 8], eax
inc ebx
jmp 0x10020524
mov dword [ebp - 4], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], eax
jl 0x10020521
mov dword [ebp - 0xc], 0xfffffffb
mov dword [ebp - 0xc], eax
jmp 0x1002050c
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx + ecx*4]
mov dword [edx + esi*4], ecx
mov ecx, dword [ebp - 4]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], ebx
jle 0x100204f7
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + edx*4], eax
jne 0x10020521
dec dword [ebp - 4]
jns 0x100204eb
inc dword [ebp - 8]
cmp dword [ebp - 8], ebx
jle 0x100204e0
cmp dword [ebp - 0x44], eax
je 0x10020542
push dword [ebp - 0x44]
call fcn.10050ee7
xor eax, eax
pop ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 8
mov ecx, 0x70cc321a
mov dword [ebp - 0xc], 0x266d8ff8
mov dword [ebp - 0x14], 0x95ff79fa
mov dword [ebp - 0x18], 0x974498b9
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 8], 0xfffffff8
mov dword [ebp - 0x14], 0xa1ee3199
mov dword [ebp - 0x18], 0xfffffff6
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
imul ecx, dword [ebp - 4]
test ecx, ecx
je 0x1002059c
mov ecx, ebx
cmp dword [ebp - 4], eax
jne 0x1002059e
mov ecx, eax
xor ebx, ebx
cmp ecx, 0xd764
mov ecx, dword [ebp - 4]
sete bl
xor edx, edx
cmp ebx, ecx
setne dl
mov dword [ebp - 0x14], edx
xor edx, edx
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
sub esi, 0x15a0cb43
cmp ecx, esi
setg dl
mov dword [ebp - 0x18], edx
cmp dword [ebp - 4], 0xfffb
jbe 0x100205df
cmp dword [ebp - 0xc], eax
je 0x100205df
xor edx, edx
inc edx
jmp 0x100205e1
mov edx, eax
mov dword [ebp - 0x80], edx
xor ebx, ebx
mov ecx, dword [ebp - 8]
cmp edx, ecx
setl bl
xor edx, edx
sub ebx, dword [ebp - 8]
mov ecx, dword [ebp - 8]
cmp ebx, ecx
setg dl
cmp edx, 0x2afd
jg 0x1002060c
cmp dword [ebp - 0x7c], eax
jne 0x1002060c
mov edx, eax
jmp 0x1002060f
xor edx, edx
inc edx
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp edx, eax
push 3
setl cl
sub ecx, dword [ebp - 4]
neg ecx
sbb ecx, ecx
inc ecx
imul ecx, dword [ebp - 4]
sub ecx, dword [ebp - 8]
neg ecx
sbb ecx, ecx
inc ecx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
dec edx
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
setle cl
sub edx, ecx
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
setge cl
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x1c], 0x70ad6f2e
mov dword [ebp - 0x1c], 0x20f89b54
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x1c], 0x152c58fb
mov dword [ebp - 0x1c], 0x8748afa2
mov dword [ebp - 0x1c], 0xfffffffc
mov dword [ebp - 0x1c], 0xffffffff
call fcn.1000b514
xor esi, esi
mov dword [ebp - 0x14], 0x9214a9ba
mov dword [ebp - 8], esi
jmp 0x100206b3
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x5c]
mov dword [eax + ecx*4], 0x6f8c7b5c
inc dword [ebp - 8]
cmp dword [ebp - 8], 3
jl 0x100206a3
dec dword [ebp - 0x14]
cmp dword [ebp - 0x5c], esi
je 0x100206d3
push dword [ebp - 0x5c]
call fcn.10050ee7
pop ecx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
push dword [ebp + 0xc]
movdqa xmm0, xmmword [0x10007ea0]
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x30], esi
push eax
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], esi
movdqu xmmword [ebp - 0xb8], xmm0
mov dword [ebp - 0x28], esi
call fcn.1000f644
xor eax, eax
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
jg 0x100207ff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0xd767
mov dword [ebp - 4], 3
cmp dword [ebp - 4], eax
jl 0x10020756
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + ecx*4]
mov dword [edx + esi*4], ecx
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + esi*4], edx
dec dword [ebp - 4]
jns 0x10020736
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
dec edx
neg edx
sbb edx, edx
xor ebx, ebx
inc edx
cmp ecx, edx
mov ecx, dword [ebp - 0x30]
setle bl
add ebx, dword [ecx + esi*4]
mov ecx, dword [ecx + edi*4]
sub ecx, 0x52828ee2
cmp ecx, ebx
je 0x10020792
cmp dword [ebp - 0xc], eax
je 0x10020792
xor edx, edx
inc edx
jmp 0x10020794
mov edx, eax
mov ecx, dword [ebp - 8]
add ecx, edx
je 0x100207de
mov dword [ebp - 4], eax
jmp 0x100207d6
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x100207d3
push 0x1735
push 0x104c
push 0x1bd9
push 0x1525
push 0x1100
push eax
push eax
push eax
push eax
push 0x22e8
call dword [sym.imp.USER32.dll_DrawStateW]
xor eax, eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jle 0x100207a0
jmp 0x100207ef
mov dword [ebp - 0x18], 0x51acae7b
cmp dword [ebp - 0x18], eax
jne 0x100207fc
cmp dword [ebp - 8], eax
jne 0x100207fc
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jle 0x1002071c
mov edi, dword [ebp - 0x34]
cmp dword [ebp - 0x30], 0
je 0x1002081b
push dword [ebp - 0x30]
call fcn.10050ee7
xor esi, esi
pop ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
jmp 0x1002081d
xor esi, esi
mov dword [ebp - 8], 0xfa72c2
lea ecx, [ebp - 0x50]
push 4
call fcn.1000b514
mov dword [ebp - 0x18], 0x6bc3ec3d
mov dword [ebp - 0x14], 0xfffffffc
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], esi
jmp 0x10020855
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0xc4], esi
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jl 0x10020848
mov dword [ebp - 0xc], esi
jmp 0x10020870
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x50]
mov dword [eax + ecx*4], 0xf82d83d7
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 4
jl 0x10020860
mov eax, dword [ebp - 8]
cmp eax, 0xfffffffe
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x50]
sbb edx, edx
inc edx
xor ecx, ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x18]
cmp edx, eax
setge cl
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, 1
push dword [ebp - 0x50]
setge cl
mov dword [ebp - 0x14], ecx
call fcn.10050ee7
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [edi], eax
cmp dword [edi], 0x13
pop ecx
jl 0x10020bd1
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 8], 4
push 1
call fcn.1000b514
xor esi, esi
push 3
mov dword [ebp - 4], esi
pop ecx
jmp 0x100208fd
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0xd0], 1
inc dword [ebp - 4]
cmp dword [ebp - 4], ecx
jl 0x100208ec
mov dword [ebp - 4], esi
jmp 0x10020914
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0xa8], ecx
inc dword [ebp - 4]
cmp dword [ebp - 4], ecx
jl 0x10020907
mov dword [ebp - 4], esi
xor esi, esi
inc esi
jmp 0x10020931
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x6c]
mov dword [eax + ecx*4], 0xfffffff6
inc dword [ebp - 4]
cmp dword [ebp - 4], esi
jl 0x10020921
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0xa8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0x6c]
push ecx
mov dword [ecx], eax
call fcn.10050ee7
xor eax, eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x18], 0x9c1c
mov dword [ebp - 0xc], eax
pop ecx
mov dword [ebp - 0xc], 0xffffffe7
jmp 0x100209b1
mov dword [ebp - 8], 0x53aa9ac7
mov dword [ebp - 0x14], 0x2b3b7bed
mov dword [ebp - 8], 0xfffffffe
jmp 0x100209a8
mov dword [ebp - 0x14], 0x11f07b4b
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x15
jg 0x10020998
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xfffffff8
jg 0x10020981
mov dword [ebp - 0x70], 0xffffffff
mov dword [ebp - 0x1c], 0xec0a
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], al
je 0x100209d6
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x100209ec
push 0x9db
call dword [sym.imp.USER32.dll_IsWindow]
xor eax, eax
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x14], 0x4c90d297
mov dword [ebp - 0x24], 0x836b16b
mov dword [ebp - 8], 0xd947597a
mov dword [ebp - 0x20], 0xfffffff8
mov dword [ebp - 0xc], 7
mov dword [ebp - 4], esi
mov dword [ebp - 4], eax
jmp 0x10020a2c
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x38], 0x8ef6b8f3
inc dword [ebp - 4]
cmp dword [ebp - 4], esi
jl 0x10020a1e
mov dword [ebp - 4], eax
jmp 0x10020a47
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x8c], 0x90e86489
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jl 0x10020a36
mov dword [ebp - 4], eax
jmp 0x10020a63
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x9c], 0xfff6
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jl 0x10020a52
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x14]
push 0xfffffffffffffff6
pop edx
sub edx, ecx
add edx, dword [ebp - 0xc]
je 0x10020a85
mov ecx, dword [ebp - 0x88]
mov ecx, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x98]
inc dword [ebp - 0x98]
mov ecx, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
add ecx, 0xca48
mov dword [ebp - 8], ecx
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x10020ac7
push 0xe44
push 0x11c5
call dword [sym.imp.GDI32.dll_SetMapMode]
xor eax, eax
mov dword [ebp - 8], 0xb0c3e5f8
mov dword [ebp - 0x24], 0xfffffff9
mov dword [ebp - 0x20], esi
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x10020aea
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
xor eax, eax
mov ecx, dword [ebp - 8]
mov ecx, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x1c]
mov dword [edx], ecx
mov ecx, dword [edx]
mov edx, dword [ebp + 0x18]
mov dword [edx], ecx
mov ecx, dword [edx]
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx]
mov ecx, dword [edx]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov ecx, dword [ebp + 0x20]
mov ecx, dword [ecx]
mov ecx, dword [ebx]
mov ecx, dword [edi]
cmp dword [edx], eax
je 0x10020b22
mov ebx, esi
cmp dword [ebp - 8], eax
jne 0x10020b24
mov ebx, eax
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov edi, dword [ecx]
mov ecx, dword [ebp - 0x34]
mov esi, dword [edi]
mov ecx, dword [ecx]
cmp ebx, ecx
mov ecx, esi
sete dl
sub ecx, edx
lea ecx, [esi - 1]
mov dword [edi], ecx
je 0x10020b47
xor ecx, ecx
inc ecx
jmp 0x10020b49
mov ecx, eax
mov ebx, dword [ebp + 0xc]
xor edx, edx
mov edi, dword [ebp + 0x20]
mov esi, dword [ebx]
sub esi, ecx
mov ecx, dword [edi]
cmp esi, ecx
setl dl
xor ecx, ecx
cmp edx, 0xe7ff2b9a
mov edx, dword [ebp + 8]
setne cl
mov dword [edx], ecx
mov ecx, dword [ebp + 0x24]
cmp dword [ecx], 0xfff6
mov ecx, dword [edi]
sbb esi, esi
xor edx, edx
inc esi
cmp esi, ecx
setl dl
cmp edx, 0xfae2
jne 0x10020b8b
mov ecx, dword [ebx]
imul ecx, dword [ebp - 0x24], 0xb6ba
xor edx, edx
mov edi, dword [ebp - 0x34]
add ecx, dword [ebp - 8]
cmp ecx, 7
mov ecx, dword [ebp - 0x60]
setne dl
mov dword [ecx], edx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, 0x462e
mov ecx, dword [ebp - 0x18]
setle dl
imul ecx, edx
xor edx, edx
cmp ecx, 0x4c1b2f08
setg dl
mov dword [ebp - 0x20], edx
inc dword [edi]
cmp dword [edi], 0x13
jge 0x100208ce
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret