Function at 0x102de59
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x740
push ebx
push esi
push edi
call fcn.01023d6e
test eax, eax
je 0x102e166
xor ebx, ebx
cmp dword [0x1038b68], ebx
je 0x102de98
push 0x1038b6c
call fcn.0102c8f3
push dword [0x1038b68]
call dword [0x1038ab4]
mov dword [0x1038b68], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [0x103a704]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x380]
mov dword [ebp - 0x24], eax
mov eax, dword [0x103a738]
or al, 1
push 0x417
or al, 2
push ecx
or al, 4
mov dword [ebp - 0x44], 0x28
and al, 0xf7
mov dword [ebp - 0x40], 0x20
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [0x103a738], eax
mov dword [ebp - 0x58], ebx
call dword [sym.imp.USER32.dll_LoadBitmapA]
push 0x18
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x118]
pop ecx
lea edx, [ebp - 0x58]
mov dword [eax], edx
add eax, 8
dec ecx
jne 0x102def4
push 0x7d
lea ecx, [ebp - 0x118]
pop eax
mov esi, 0x102d0f8
push ecx
push esi
mov dword [ebp - 0x114], eax
push eax
lea eax, [ebp - 0x740]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0102e409
push 0x7f
lea ecx, [ebp - 0x110]
pop eax
push ecx
push esi
mov dword [ebp - 0x10c], eax
push eax
lea eax, [ebp - 0x718]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0102e409
lea ecx, [ebp - 0x108]
mov eax, 0x80
push ecx
push esi
mov dword [ebp - 0x104], eax
push eax
lea eax, [ebp - 0x6f0]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0102e409
lea ecx, [ebp - 0x100]
mov eax, 0x81
push ecx
push esi
mov dword [ebp - 0xfc], eax
push eax
lea eax, [ebp - 0x6c8]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0102e409
lea ecx, [ebp - 0xf8]
mov eax, 0x82
push ecx
push esi
mov dword [ebp - 0xf4], eax
push eax
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0102e409
lea ecx, [ebp - 0xf0]
mov eax, 0x83
push ecx
push esi
mov dword [ebp - 0xec], eax
push eax
lea eax, [ebp - 0x678]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0102e409
lea ecx, [ebp - 0xe8]
mov eax, 0x84
push ecx
push esi
mov dword [ebp - 0xe4], eax
push eax
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0102e409
lea eax, [ebp - 0x44]
push eax
call dword [0x1038b74]
push dword [ebp - 0x54]
call fcn.01023ede
cmp dword [0x103a73c], ebx
je 0x102e166
mov eax, dword [0x103a738]
mov dword [ebp + 8], 0x31
test al, 1
je 0x102e031
mov dword [ebp + 8], 0x33
mov ecx, eax
shr ecx, 1
test cl, 1
je 0x102e03e
or dword [ebp + 8], 4
shr eax, 2
test al, 1
je 0x102e049
or dword [ebp + 8], 8
mov eax, dword [0x1038ac8]
mov eax, dword [eax + 0x1c]
cmp eax, ebx
je 0x102e13c
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x102e121
xor edi, edi
mov eax, ecx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [0x1038cb8]
sar esi, 1
shl esi, 3
mov eax, dword [eax + esi - 4]
sar eax, 0x10
test al, 0x16
jne 0x102e10a
mov eax, dword [0x1038978]
mov eax, dword [eax + 4]
push dword [eax + ecx*4]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x21c]
push 0x1001dd8
push eax
call fcn.0102a612
lea eax, [ebp - 0x21c]
push 0x8071
push eax
call fcn.0100ddae
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x102e0ee
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x102e0e6
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 4]
call fcn.0100e4d8
mov eax, dword [0x1038cb8]
and byte [eax + esi - 2], 0xf7
lea eax, [eax + esi - 4]
mov eax, dword [0x1038cb8]
or byte [eax + esi - 2], 0x10
lea eax, [eax + esi - 4]
mov eax, dword [0x1038ac8]
add edi, 4
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + edi]
cmp ecx, 0xffffffff
jne 0x102e066
mov eax, dword [0x1038ac8]
mov eax, dword [eax + 0x1c]
cmp eax, ebx
je 0x102e13c
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x1038ac8]
mov dword [eax + 0x1c], ebx
mov eax, dword [0x1038ac8]
cmp dword [eax + 0x18], ebx
je 0x102e3db
cmp dword [0x103a71c], ebx
jne 0x102e177
push 0x45
call fcn.01033d37
test eax, eax
jne 0x102e16f
push 1
push 2
call fcn.0102498f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [0x103a71c], ebx
je 0x102e18b
push 0x45
call fcn.01023cda
push eax
push dword [0x103a71c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x1038ac8]
mov eax, dword [eax + 0x18]
mov edi, dword [eax]
cmp edi, 0xffffffff
je 0x102e3bb
mov dword [ebp - 0xc], ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strrchr]
mov eax, edi
cdq
sub eax, edx
mov esi, eax
mov eax, dword [0x1038cb8]
sar esi, 1
shl esi, 3
lea edx, [eax + esi - 4]
mov eax, dword [eax + esi - 4]
mov ecx, eax
sar ecx, 0x10
test cl, 6
jne 0x102e39e
and eax, 0xffefffff
mov dword [edx], eax
mov eax, dword [0x1038cb8]
test byte [eax + esi - 2], 0x40
jne 0x102e2eb
mov eax, dword [0x1038978]
mov eax, dword [eax + 4]
push dword [eax + edi*4]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x21c]
push 0x1001dd8
push eax
call fcn.0102a612
lea eax, [ebp - 0x320]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x320]
push 0x5c
push eax
call ebx
and byte [eax + 1], 0
pop ecx
pop ecx
lea eax, [ebp - 0x320]
push 0x1001cec
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call ebx
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x320]
push 0x8071
push eax
call fcn.0100ddae
xor ecx, ecx
mov dword [ebp - 0x10], eax
cmp eax, ecx
je 0x102e2eb
mov edx, dword [0x1038cb8]
mov edx, dword [edx + esi - 8]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x18]
push edx
push ecx
push ecx
push eax
push dword [0x1038b68]
call dword [0x1038b4c]
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [0x1038b84]
test eax, eax
jne 0x102e2cf
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x102e2eb
mov eax, dword [0x1038cb8]
or byte [eax + esi - 2], 0x10
lea eax, [eax + esi - 4]
jmp 0x102e39e
mov eax, dword [0x1038cb8]
or byte [eax + esi - 2], 8
lea eax, [eax + esi - 4]
lea eax, [ebp - 0x10]
push eax
call fcn.0100e4ec
jmp 0x102e39e
mov eax, dword [0x1038978]
mov eax, dword [eax + 4]
push dword [eax + edi*4]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x21c]
push 0x8071
push eax
call fcn.0100ddae
test eax, eax
mov dword [ebp - 4], eax
jne 0x102e339
mov eax, dword [0x1038cb8]
and byte [eax + esi - 2], 0xf7
lea eax, [eax + esi - 4]
mov eax, dword [0x1038cb8]
or byte [eax + esi - 2], 2
lea eax, [eax + esi - 4]
jmp 0x102e39e
push eax
call fcn.0100e505
mov dword [ebp - 0x14], eax
push 1
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.010184f7
and dword [ebp - 8], 0
mov edi, eax
test edi, edi
je 0x102e380
push dword [ebp + 8]
push dword [ebp - 4]
push edi
call fcn.010176ac
test eax, eax
mov dword [ebp - 8], eax
jne 0x102e37a
mov eax, dword [0x1038cb8]
or byte [eax + esi - 2], 8
lea eax, [eax + esi - 4]
push edi
call fcn.0101870c
lea eax, [ebp - 0x14]
push eax
call fcn.0100e4ec
lea eax, [ebp - 4]
push eax
call fcn.0100e4ec
cmp dword [ebp - 8], 0xfffffffa
je 0x102e3e3
cmp dword [ebp - 8], 0xffffffec
je 0x102e3e3
mov eax, dword [0x1038ac8]
add dword [ebp - 0xc], 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov edi, dword [eax + ecx]
cmp edi, 0xffffffff
jne 0x102e1a7
xor ebx, ebx
mov eax, dword [0x1038ac8]
mov eax, dword [eax + 0x18]
cmp eax, ebx
je 0x102e3d6
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x1038ac8]
mov dword [eax + 0x18], ebx
call fcn.01033dbd
push 1
pop eax
jmp 0x102e168
mov eax, dword [0x1038ac8]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x102e3ff
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x1038ac8]
and dword [eax + 0x18], 0
call fcn.01033dbd
jmp 0x102e166