Function at 0x102d11c
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x480
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x1c], ebx
call fcn.0101c19b
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 2
push edi
call esi
push eax
lea ecx, [ebp - 4]
call fcn.0102a332
push 1
push edi
call esi
push eax
lea ecx, [ebp - 0xc]
call fcn.0102a332
push 0x38e
push edi
call esi
push eax
lea ecx, [ebp - 8]
call fcn.0102a332
cmp dword [ebp + 0xc], ebx
mov esi, 0x1037b34
je 0x102d191
cmp dword [0x1037a08], ebx
je 0x102d19d
call fcn.01029875
push dword [0x1037a08]
call dword [0x1037958]
mov dword [0x1037a08], ebx
cmp dword [0x1037a08], ebx
jne 0x102d72a
mov ebx, 0x104
cmp dword [0x1037c90], 0
jne 0x102d1b8
call fcn.01029886
test eax, eax
je 0x102d5e8
push edi
call dword [0x10379d4]
call dword [0x1037c90]
test eax, eax
mov dword [0x1037a08], eax
je 0x102d602
cmp dword [ebp + 0xc], 1
jne 0x102d1f9
push edi
call fcn.0102c6b6
test eax, eax
je 0x102d602
call dword [0x1037c90]
test eax, eax
mov dword [0x1037a08], eax
je 0x102d602
push dword [0x10379dc]
lea eax, [ebp - 0x37c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1001d50
lea eax, [ebp - 0x37c]
push eax
call fcn.0102941e
cmp dword [0x1039554], 0
jne 0x102d231
push 0x33
call fcn.010322d9
test eax, eax
je 0x102d242
push dword [0x1039554]
push fcn.01032346
call dword [0x10379ec]
push dword [0x1039554]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x1037b10]
mov eax, dword [eax + 8]
dec eax
cmp eax, 2
jle 0x102d2bb
push 0x8071
lea eax, [ebp - 0x37c]
push eax
call fcn.0100e383
test eax, eax
mov dword [ebp - 0x20], eax
je 0x102d2bb
cmp dword [ebp + 0xc], 0
push eax
je 0x102d283
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x102d2a9
push dword [0x1037a08]
call dword [0x1037b44]
test eax, eax
jge 0x102d62a
cmp eax, 0xfffffffa
je 0x102d68a
cmp eax, 0xffffffec
je 0x102d68a
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x20]
push eax
call fcn.0100d754
mov ecx, dword [0x1037b10]
and dword [ebp - 0x28], 0
and dword [ebp - 0x30], 0
mov edx, dword [ecx + 8]
push 2
pop eax
dec edx
cmp edx, eax
mov dword [ebp - 0x10], eax
jl 0x102d516
mov eax, dword [ebp - 0x10]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [0x1037b40]
sar esi, 1
shl esi, 3
mov al, byte [esi + eax - 2]
test al, 0x16
mov byte [ebp - 0x11], al
jne 0x102d4f7
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x10]
push dword [eax + ecx*4]
lea eax, [ebp - 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1001d48
lea eax, [ebp - 0x480]
push eax
call fcn.0102941e
push ebx
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [sym.imp.msvcrt.dll_strrchr]
lea eax, [ebp - 0x138]
push 0x5c
push eax
call edi
and byte [eax + 1], 0
pop ecx
pop ecx
push ebx
push 0x1001c80
lea eax, [ebp - 0x138]
push eax
call fcn.0100d647
lea eax, [ebp - 0x480]
push 0x5c
push eax
call edi
pop ecx
pop ecx
push ebx
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.0100d647
push 0x8071
lea eax, [ebp - 0x138]
push eax
call fcn.0100e383
test eax, eax
mov dword [ebp - 0x18], eax
je 0x102d589
test byte [ebp - 0x11], 8
jne 0x102d3ae
mov eax, dword [0x1037b40]
lea eax, [esi + eax - 4]
or byte [eax + 2], 8
mov dword [0x1037b18], 1
mov eax, dword [0x1037b40]
mov eax, dword [esi + eax - 8]
and dword [ebp - 0x34], 0
test eax, eax
mov dword [ebp - 0x24], eax
jne 0x102d452
mov eax, dword [0x1037b10]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x102d3f8
mov eax, dword [0x1037b40]
lea eax, [esi + eax - 4]
or byte [eax + 2], 2
jmp 0x102d452
mov eax, dword [0x1037b10]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.0102812f
test eax, eax
je 0x102d426
mov eax, dword [ebp - 0x2c]
mov ecx, dword [0x1037b40]
mov dword [esi + ecx - 8], eax
mov eax, dword [ebp - 0x2c]
jmp 0x102d448
lea eax, [ebp - 0x264]
push eax
call fcn.01016161
mov eax, dword [ebp - 0x264]
mov ecx, dword [0x1037b40]
mov dword [esi + ecx - 8], eax
mov eax, dword [ebp - 0x264]
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
xor edi, edi
push edi
push edi
push dword [ebp - 0x18]
push dword [0x1037a08]
call dword [0x1037960]
cmp eax, 0xfffffffa
je 0x102d6b5
cmp eax, 0xffffffec
je 0x102d6b5
cmp eax, edi
jge 0x102d4bd
push dword [ebp - 0x18]
inc edi
mov dword [ebp - 0x28], edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x102d4b8
mov eax, dword [0x1037b40]
lea eax, [esi + eax - 4]
mov cx, word [eax + 2]
and cx, 0xfff7
mov word [eax + 2], cx
mov eax, dword [0x1037b40]
lea eax, [esi + eax - 4]
or byte [eax + 2], 0x40
jmp 0x102d4ef
mov dword [ebp - 0x28], edi
jmp 0x102d4ef
mov ecx, dword [0x1037b40]
mov word [esi + ecx - 4], ax
mov eax, dword [0x1037b10]
mov eax, dword [eax + 8]
dec eax
cmp eax, 2
jle 0x102d4e0
mov dword [0x1037b18], 1
push edi
push edi
mov dword [ebp - 0x30], 1
call dword [0x10379ec]
push dword [ebp - 0x18]
call fcn.0100d744
mov ecx, dword [0x1037b10]
add dword [ebp - 0x10], 2
mov eax, dword [ecx + 8]
dec eax
cmp dword [ebp - 0x10], eax
jle 0x102d2db
mov edi, dword [ebp + 8]
mov esi, 0x1037b34
push 0
push 0
call dword [0x10379ec]
cmp dword [ebp - 0x30], 0
jne 0x102d59d
cmp dword [ebp - 0x1c], 0
jne 0x102d6eb
push edi
call fcn.0102c6b6
test eax, eax
jne 0x102d5cf
call fcn.01029875
push dword [0x1037a08]
call dword [0x1037958]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
xor edi, edi
cmp dword [ebp - 8], edi
mov dword [0x1037a08], edi
je 0x102d569
push 1
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], edi
je 0x102d575
push 1
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 4], edi
je 0x102d581
push 1
push dword [ebp - 4]
call esi
or esi, 0xffffffff
jmp 0x102d866
push 0
push 0
call dword [0x10379ec]
mov edi, dword [ebp + 8]
mov esi, 0x1037b34
jmp 0x102d526
cmp dword [ebp - 0x28], 0
je 0x102d709
call fcn.01029875
push dword [0x1037a08]
call dword [0x1037958]
and dword [0x1037a08], 0
cmp dword [ebp - 0x1c], 0
jne 0x102d602
push edi
call fcn.0102c6b6
test eax, eax
je 0x102d602
cmp dword [0x1037a08], 0
mov dword [ebp - 0x1c], 1
je 0x102d1a2
jmp 0x102d72a
lea eax, [ebp - 0x240]
push eax
push 0x32
call fcn.010216a2
lea eax, [ebp - 0x240]
push eax
call fcn.01029c6c
xor edi, edi
cmp dword [ebp - 8], edi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
je 0x102d616
push 1
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], edi
je 0x102d622
push 1
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 4], edi
jmp 0x102d85b
lea eax, [ebp - 0x20]
push eax
call fcn.0100d754
push 0
push 0
call dword [0x10379ec]
mov eax, dword [0x1037a08]
test eax, eax
je 0x102d837
cmp dword [0x103795c], 0
je 0x102d77d
call fcn.0100c715
test eax, eax
je 0x102d769
mov eax, dword [eax + 0xc]
mov ax, word [eax + 0x1e6]
and ax, 0x3ff
cmp ax, 1
je 0x102d682
cmp ax, 0xd
jne 0x102d769
xor eax, eax
inc eax
jmp 0x102d76b
lea eax, [ebp - 0x20]
push eax
call fcn.0100d754
call fcn.01029875
xor edi, edi
push edi
push edi
call dword [0x10379ec]
call fcn.010312ce
push dword [0x1037a08]
call dword [0x1037958]
jmp 0x102d6fe
mov esi, 0x1037b34
call fcn.01029875
push edi
push edi
call dword [0x10379ec]
call fcn.010312ce
push dword [0x1037a08]
call dword [0x1037958]
push dword [ebp - 0x18]
mov dword [0x1037a08], edi
call fcn.0100d744
jmp 0x102d604
call fcn.01029875
push dword [0x1037a08]
call dword [0x1037958]
xor edi, edi
mov dword [0x1037a08], edi
jmp 0x102d604
mov eax, dword [0x1037b10]
mov eax, dword [eax + 8]
dec eax
cmp eax, 2
jle 0x102d72a
lea eax, [ebp - 0x37c]
push eax
push dword [0x1037a08]
call dword [0x1037b20]
cmp dword [ebp + 0xc], 2
jne 0x102d63d
cmp dword [ebp - 8], 0
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
je 0x102d747
push 1
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], 0
je 0x102d754
push 1
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 4], 0
je 0x102d761
push 1
push dword [ebp - 4]
call esi
xor esi, esi
inc esi
jmp 0x102d866
xor eax, eax
push eax
push 0
push dword [0x1037a08]
push edi
call dword [0x103795c]
jmp 0x102d787
push 0
push eax
push edi
call dword [0x1037b3c]
test eax, eax
mov dword [0x1037c78], eax
je 0x102d7e4
call fcn.01029855
push 0xfffffffffffffff0
push dword [0x1037c78]
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 4
push eax
push 0xfffffffffffffff0
push dword [0x1037c78]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push dword [0x1037c78]
call fcn.0102bb09
push dword [0x1037c78]
mov ebx, edi
call fcn.01029a0e
push 0x43
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [0x1037c78]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x102d7fc
call fcn.01029875
push dword [0x1037a08]
call dword [0x1037958]
and dword [0x1037a08], 0
call fcn.010312ce
mov ebx, dword [0x1037c78]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
xor edi, edi
cmp dword [ebp - 8], edi
je 0x102d81b
push 1
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], edi
je 0x102d827
push 1
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 4], edi
je 0x102d833
push 1
push dword [ebp - 4]
call esi
mov esi, ebx
jmp 0x102d866
cmp dword [ebp - 8], 0
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
je 0x102d84a
push 1
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], 0
je 0x102d857
push 1
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 4], 0
je 0x102d864
push 1
push dword [ebp - 4]
call esi
xor esi, esi
call fcn.0101c1c2
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8