Function at 0x1034434
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 [0x10413a0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call fcn.01028292
test eax, eax
je 0x103478f
push ebx
xor ebx, ebx
push esi
cmp dword [0x1041a1c], ebx
je 0x1034481
mov esi, 0x1041b44
call fcn.010312b1
push dword [0x1041a1c]
call dword [0x1041970]
mov dword [0x1041a1c], ebx
mov eax, dword [0x1043808]
lea ecx, [ebp - 0x388]
mov dword [ebp - 0x234], ecx
mov ecx, dword [0x1043628]
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 [0x1043628], ecx
mov dword [ebp - 0x268], ebx
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov dword [ebp - 0x264], eax
cmp eax, ebx
jne 0x103450c
push dword [0x10413bc]
push 1
push 0x1006630
call fcn.0103d72e
push 0xe
call dword [sym.imp.msvcrt.dll_exit]
xor eax, eax
lea ecx, [ebp - 0x268]
mov dword [ebp + eax*8 - 0x328], ecx
inc eax
cmp eax, 0x18
jl 0x103450e
push 0x7d
pop eax
lea ecx, [ebp - 0x328]
push ecx
mov edi, 0x1033723
push edi
mov dword [ebp - 0x324], eax
push eax
lea eax, [ebp - 0x748]
lea esi, [ebp - 0x254]
call fcn.01031b35
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.01031b35
lea ecx, [ebp - 0x318]
push ecx
mov eax, 0x80
push edi
mov dword [ebp - 0x314], eax
push eax
lea eax, [ebp - 0x6f8]
call fcn.01031b35
lea ecx, [ebp - 0x310]
push ecx
mov eax, 0x81
push edi
mov dword [ebp - 0x30c], eax
push eax
lea eax, [ebp - 0x6d0]
call fcn.01031b35
lea ecx, [ebp - 0x308]
push ecx
mov eax, 0x82
push edi
mov dword [ebp - 0x304], eax
push eax
lea eax, [ebp - 0x6a8]
call fcn.01031b35
lea ecx, [ebp - 0x300]
push ecx
mov eax, 0x83
push edi
mov dword [ebp - 0x2fc], eax
push eax
lea eax, [ebp - 0x680]
call fcn.01031b35
lea ecx, [ebp - 0x2f8]
push ecx
mov eax, 0x84
push edi
mov dword [ebp - 0x2f4], eax
push eax
lea eax, [ebp - 0x658]
call fcn.01031b35
mov eax, esi
push eax
call dword [0x1041984]
push dword [ebp - 0x264]
call fcn.0102841b
cmp dword [0x104362c], ebx
je 0x103478b
mov al, byte [0x1043628]
mov dword [ebp - 0x214], 0x31
test al, 1
je 0x103463e
mov dword [ebp - 0x214], 0x33
test al, 2
je 0x1034649
or dword [ebp - 0x214], 4
test al, 4
je 0x1034654
or dword [ebp - 0x214], 8
mov ecx, dword [0x104197c]
mov edi, 0x104
cmp dword [ecx + 0x1c], ebx
je 0x1034766
mov eax, dword [ecx + 0x1c]
mov ebx, dword [eax]
cmp ebx, 0xffffffff
je 0x1034746
and dword [ebp - 0x210], 0
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [0x1041b50]
shl esi, 3
test byte [esi + eax - 2], 0x16
jne 0x103472a
mov eax, dword [0x1041b20]
mov eax, dword [eax + 4]
push dword [eax + ebx*4]
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0100e041
push 0x1005014
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.0103210b
push 0x8071
lea eax, [ebp - 0x108]
push eax
call fcn.01013dc4
mov dword [ebp - 0x218], eax
test eax, eax
je 0x1034708
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10346fd
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x218]
call fcn.01007110
mov eax, dword [0x1041b50]
lea eax, [esi + eax - 4]
and word [eax + 2], 0xfff7
mov eax, dword [0x1041b50]
lea eax, [esi + eax - 4]
or word [eax + 2], 0x10
mov ecx, dword [0x104197c]
add dword [ebp - 0x210], 4
mov eax, dword [ecx + 0x1c]
mov edx, dword [ebp - 0x210]
mov ebx, dword [edx + eax]
cmp ebx, 0xffffffff
jne 0x103467d
cmp dword [ecx + 0x1c], 0
je 0x1034764
push dword [ecx + 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x104197c]
and dword [eax + 0x1c], 0
mov ecx, dword [0x104197c]
xor ebx, ebx
cmp dword [ecx + 0x18], ebx
je 0x1034a4d
cmp dword [0x1043894], ebx
jne 0x10347a4
push 0x45
call fcn.0103ab26
test eax, eax
jne 0x103479c
push 1
push 2
call fcn.0102b944
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0103d1ec
leave
ret
cmp dword [0x1043894], ebx
je 0x10347b8
push 0x45
call fcn.010281fa
push eax
push dword [0x1043894]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x104197c]
mov ecx, dword [eax + 0x18]
mov ebx, dword [ecx]
cmp ebx, 0xffffffff
je 0x1034a30
and dword [ebp - 0x220], 0
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [0x1041b50]
shl esi, 3
lea eax, [esi + eax - 4]
test byte [eax + 2], 6
jne 0x1034a0f
and word [eax + 2], 0xffef
mov eax, dword [0x1041b50]
test byte [esi + eax - 2], 0x40
jne 0x1034938
mov eax, dword [0x1041b20]
mov eax, dword [eax + 4]
push dword [eax + ebx*4]
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0100e041
push 0x1005014
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.0103210b
push edi
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]
pop ecx
pop ecx
test eax, eax
je 0x1034857
mov byte [eax + 1], 0
push 0x1004efc
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01007b2f
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
pop ecx
pop ecx
test eax, eax
je 0x103488c
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01007b2f
push 0x8071
lea eax, [ebp - 0x20c]
push eax
call fcn.01013dc4
mov dword [ebp - 0x210], eax
test eax, eax
je 0x1034938
mov ecx, dword [0x1041b50]
mov ecx, dword [esi + ecx - 8]
lea edx, [ebp - 0x22c]
push edx
lea edx, [ebp - 0x228]
push edx
mov dword [ebp - 0x228], ecx
xor ecx, ecx
push ecx
push ecx
push eax
push dword [0x1041a1c]
mov dword [ebp - 0x22c], ecx
call dword [0x1041978]
push dword [ebp - 0x214]
push dword [ebp - 0x210]
call dword [0x1041a14]
test eax, eax
jne 0x1034919
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1034938
mov eax, dword [0x1041b50]
lea eax, [esi + eax - 4]
or word [eax + 2], 0x10
jmp 0x1034a0f
mov eax, dword [0x1041b50]
lea eax, [esi + eax - 4]
or word [eax + 2], 8
lea eax, [ebp - 0x210]
push eax
call fcn.01012ee8
jmp 0x1034a0f
mov eax, dword [0x1041b20]
mov eax, dword [eax + 4]
push dword [eax + ebx*4]
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0100e041
push 0x8071
lea eax, [ebp - 0x108]
push eax
call fcn.01013dc4
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x103498c
mov eax, dword [0x1041b50]
lea eax, [esi + eax - 4]
and word [eax + 2], 0xfff7
mov eax, dword [0x1041b50]
lea eax, [esi + eax - 4]
or word [eax + 2], 2
jmp 0x1034a0f
push eax
call fcn.010134ed
push 1
mov dword [ebp - 0x224], eax
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.0101e9db
and dword [ebp - 0x21c], 0
mov ebx, eax
test ebx, ebx
je 0x10349e5
push dword [ebp - 0x214]
push dword [ebp - 0x218]
push ebx
call fcn.0101db53
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x10349df
mov eax, dword [0x1041b50]
lea esi, [esi + eax - 4]
or word [esi + 2], 8
push ebx
call fcn.0101e653
lea eax, [ebp - 0x224]
push eax
call fcn.01012ee8
lea eax, [ebp - 0x218]
push eax
call fcn.01012ee8
cmp dword [ebp - 0x21c], 0xfffffffa
je 0x1034a55
cmp dword [ebp - 0x21c], 0xffffffec
je 0x1034a55
add dword [ebp - 0x220], 4
mov eax, dword [0x104197c]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x220]
mov ebx, dword [edx + ecx]
cmp ebx, 0xffffffff
jne 0x10347d2
cmp dword [eax + 0x18], 0
je 0x1034a48
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x104197c]
and dword [eax + 0x18], 0
call fcn.01039c2e
xor eax, eax
inc eax
jmp 0x103478d
mov eax, dword [0x104197c]
cmp dword [eax + 0x18], 0
je 0x1034a72
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x104197c]
and dword [eax + 0x18], 0
call fcn.01039c2e
jmp 0x103478b