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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x748
mov eax, dword [0x103b3bc]
push edi
mov dword [ebp - 4], eax
mov edi, ecx
call fcn.010238e2
test eax, eax
je 0x102fdd2
push ebx
xor ebx, ebx
cmp dword [0x103ba28], ebx
push esi
je 0x102fae8
mov esi, 0x103bb54
call fcn.0102c6f9
push dword [0x103ba28]
call dword [0x103b978]
mov dword [0x103ba28], ebx
mov eax, dword [0x103d4e8]
lea ecx, [ebp - 0x388]
mov dword [ebp - 0x234], ecx
mov ecx, dword [0x103d308]
and ecx, 0xfffffff7
push 0x417
or ecx, 7
push eax
mov dword [ebp - 0x254], 0x28
mov dword [ebp - 0x250], 0x20
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [0x103d308], ecx
mov dword [ebp - 0x268], ebx
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov dword [ebp - 0x264], eax
xor eax, eax
lea ecx, [ebp - 0x268]
mov dword [ebp + eax*8 - 0x328], ecx
inc eax
cmp eax, 0x18
jl 0x102fb57
push 0x7d
pop eax
lea ecx, [ebp - 0x328]
push ecx
mov edi, 0x102edb2
push edi
mov dword [ebp - 0x324], eax
push eax
lea eax, [ebp - 0x748]
lea esi, [ebp - 0x254]
call fcn.0102cff4
push 0x7f
pop eax
lea ecx, [ebp - 0x320]
push ecx
push edi
mov dword [ebp - 0x31c], eax
push eax
lea eax, [ebp - 0x720]
call fcn.0102cff4
lea ecx, [ebp - 0x318]
push ecx
mov eax, 0x80
push edi
mov dword [ebp - 0x314], eax
push eax
lea eax, [ebp - 0x6f8]
call fcn.0102cff4
lea ecx, [ebp - 0x310]
push ecx
mov eax, 0x81
push edi
mov dword [ebp - 0x30c], eax
push eax
lea eax, [ebp - 0x6d0]
call fcn.0102cff4
lea ecx, [ebp - 0x308]
push ecx
mov eax, 0x82
push edi
mov dword [ebp - 0x304], eax
push eax
lea eax, [ebp - 0x6a8]
call fcn.0102cff4
lea ecx, [ebp - 0x300]
push ecx
mov eax, 0x83
push edi
mov dword [ebp - 0x2fc], eax
push eax
lea eax, [ebp - 0x680]
call fcn.0102cff4
lea ecx, [ebp - 0x2f8]
push ecx
mov eax, 0x84
push edi
mov dword [ebp - 0x2f4], eax
push eax
lea eax, [ebp - 0x658]
call fcn.0102cff4
mov eax, esi
push eax
call dword [0x103b9f0]
push dword [ebp - 0x264]
call fcn.01023a6b
cmp dword [0x103d30c], ebx
je 0x102fdce
mov al, byte [0x103d308]
test al, 1
mov dword [ebp - 0x214], 0x31
je 0x102fc87
mov dword [ebp - 0x214], 0x33
test al, 2
je 0x102fc92
or dword [ebp - 0x214], 4
test al, 4
je 0x102fc9d
or dword [ebp - 0x214], 8
mov ecx, dword [0x103b984]
mov eax, dword [ecx + 0x1c]
cmp eax, ebx
je 0x102fda9
mov edi, dword [eax]
cmp edi, 0xffffffff
je 0x102fd8d
mov dword [ebp - 0x210], ebx
mov eax, edi
cdq
sub eax, edx
mov esi, eax
mov eax, dword [0x103bb60]
sar esi, 1
shl esi, 3
test byte [esi + eax - 2], 0x16
jne 0x102fd71
mov eax, dword [0x103bb30]
mov eax, dword [eax + 4]
push dword [eax + edi*4]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1001d58
lea eax, [ebp - 0x108]
push eax
call fcn.0102c23a
push 0x8071
lea eax, [ebp - 0x108]
push eax
call fcn.0100f57a
cmp eax, ebx
mov dword [ebp - 0x218], eax
je 0x102fd49
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x102fd3e
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x218]
call fcn.0100325b
mov eax, dword [0x103bb60]
lea eax, [esi + eax - 4]
mov cx, word [eax + 2]
and cx, 0xfff7
mov word [eax + 2], cx
mov eax, dword [0x103bb60]
lea eax, [esi + eax - 4]
or byte [eax + 2], 0x10
mov ecx, dword [0x103b984]
add dword [ebp - 0x210], 4
mov eax, dword [ecx + 0x1c]
mov edx, dword [ebp - 0x210]
mov edi, dword [edx + eax]
cmp edi, 0xffffffff
jne 0x102fcbf
mov eax, dword [ecx + 0x1c]
cmp eax, ebx
je 0x102fda9
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x103b984]
mov dword [eax + 0x1c], ebx
mov ecx, dword [0x103b984]
cmp dword [ecx + 0x18], ebx
je 0x1030097
cmp dword [0x103d574], ebx
jne 0x102fde5
push 0x45
call fcn.01035fb5
test eax, eax
jne 0x102fddd
push 1
push 2
call fcn.01026a0b
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01037c5a
leave
ret
cmp dword [0x103d574], ebx
je 0x102fdf9
push 0x45
call fcn.01023837
push eax
push dword [0x103d574]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x103b984]
mov ecx, dword [eax + 0x18]
mov edi, dword [ecx]
cmp edi, 0xffffffff
je 0x103007c
mov dword [ebp - 0x220], ebx
mov ebx, 0x104
mov eax, edi
cdq
sub eax, edx
mov esi, eax
mov eax, dword [0x103bb60]
sar esi, 1
shl esi, 3
lea eax, [esi + eax - 4]
test byte [eax + 2], 6
jne 0x1030059
mov cx, word [eax + 2]
and cx, 0xffef
mov word [eax + 2], cx
mov eax, dword [0x103bb60]
test byte [esi + eax - 2], 0x40
jne 0x102ff7d
mov eax, dword [0x103bb30]
mov eax, dword [eax + 4]
push dword [eax + edi*4]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1001d58
lea eax, [ebp - 0x108]
push eax
call fcn.0102c23a
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
test eax, eax
pop ecx
pop ecx
je 0x102fea2
mov byte [eax + 1], 0
push ebx
push 0x1001c90
lea eax, [ebp - 0x20c]
push eax
call fcn.0100e69c
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
pop ecx
pop ecx
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0100e69c
push 0x8071
lea eax, [ebp - 0x20c]
push eax
call fcn.0100f57a
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x210], eax
je 0x102ff7d
mov edx, dword [0x103bb60]
mov edx, dword [esi + edx - 8]
mov dword [ebp - 0x228], edx
lea edx, [ebp - 0x22c]
push edx
lea edx, [ebp - 0x228]
push edx
push ecx
push ecx
push eax
push dword [0x103ba28]
mov dword [ebp - 0x22c], ecx
call dword [0x103b980]
push dword [ebp - 0x214]
push dword [ebp - 0x210]
call dword [0x103ba20]
test eax, eax
jne 0x102ff5f
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x102ff7d
mov eax, dword [0x103bb60]
lea eax, [esi + eax - 4]
or byte [eax + 2], 0x10
jmp 0x1030059
mov eax, dword [0x103bb60]
lea eax, [esi + eax - 4]
or byte [eax + 2], 8
lea eax, [ebp - 0x210]
push eax
call fcn.0100e7d3
jmp 0x1030059
mov eax, dword [0x103bb30]
mov eax, dword [eax + 4]
push dword [eax + edi*4]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x8071
lea eax, [ebp - 0x108]
push eax
call fcn.0100f57a
test eax, eax
mov dword [ebp - 0x218], eax
jne 0x102ffd7
mov eax, dword [0x103bb60]
lea eax, [esi + eax - 4]
mov cx, word [eax + 2]
and cx, 0xfff7
mov word [eax + 2], cx
mov eax, dword [0x103bb60]
lea eax, [esi + eax - 4]
or byte [eax + 2], 2
jmp 0x1030059
push eax
call fcn.0100e7f6
push 1
mov dword [ebp - 0x224], eax
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.01019e3e
and dword [ebp - 0x21c], 0
mov edi, eax
test edi, edi
je 0x103002f
push dword [ebp - 0x214]
push dword [ebp - 0x218]
push edi
call fcn.010190ea
test eax, eax
mov dword [ebp - 0x21c], eax
jne 0x1030029
mov eax, dword [0x103bb60]
lea eax, [esi + eax - 4]
or byte [eax + 2], 8
push edi
call fcn.01019b89
lea eax, [ebp - 0x224]
push eax
call fcn.0100e7d3
lea eax, [ebp - 0x218]
push eax
call fcn.0100e7d3
cmp dword [ebp - 0x21c], 0xfffffffa
je 0x103009f
cmp dword [ebp - 0x21c], 0xffffffec
je 0x103009f
add dword [ebp - 0x220], 4
mov eax, dword [0x103b984]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x220]
mov edi, dword [edx + ecx]
cmp edi, 0xffffffff
jne 0x102fe17
xor ebx, ebx
mov eax, dword [eax + 0x18]
cmp eax, ebx
je 0x1030092
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x103b984]
mov dword [eax + 0x18], ebx
call fcn.01034eac
xor eax, eax
inc eax
jmp 0x102fdd0
mov eax, dword [0x103b984]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x10300bb
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x103b984]
and dword [eax + 0x18], 0
call fcn.01034eac
jmp 0x102fdce