Function at 0x10629e8
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x1076530]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x290], ebx
mov eax, dword [0x1075318]
cmp eax, 0x1075318
je 0x1062a33
test dword [eax + 0x1c], 0x20000000
je 0x1062a33
push 0x1010180
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01016edb
push 1
push 0x42a
push 0x1010330
lea ecx, [ebp - 0x234]
call fcn.01055826
xor esi, esi
mov eax, 0x1010420
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x268], eax
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push esi
push eax
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x288], esi
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0x439
cmp ebx, esi
jne 0x1062b05
mov dword [ebp - 0x234], 0x80070057
jmp 0x1062eb0
mov word [ebp - 0x230], ax
mov eax, 0x43a
cmp edi, esi
je 0x1062af6
mov word [ebp - 0x230], ax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1062b21
sub eax, edx
sar eax, 1
cmp eax, 0x8000
jb 0x1062b4a
mov dword [ebp - 0x234], 0x80070057
mov eax, 0x43d
jmp 0x1062eb0
add eax, 5
mov ecx, 0x43d
mov dword [ebp - 0x234], esi
mov word [ebp - 0x230], cx
cmp eax, 0x104
jae 0x1062bb2
push esi
push esi
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_PathYetAnotherMakeUniqueName]
test eax, eax
je 0x1062bb2
lea edx, [ebp - 0x210]
mov ecx, ebx
call fcn.0106470b
cmp eax, esi
mov dword [ebp - 0x234], eax
jge 0x1062b9b
mov eax, 0x444
jmp 0x1062eb0
mov eax, 0x445
mov dword [ebp - 0x234], esi
mov word [ebp - 0x230], ax
jmp 0x1062eb7
mov edx, edi
lea ecx, [ebp - 0x244]
call fcn.0106470b
mov dword [ebp - 0x234], eax
cmp eax, esi
mov eax, 0x44b
jl 0x1062eb0
push 0x5c
pop edx
lea ecx, [ebp - 0x244]
mov word [ebp - 0x230], ax
call fcn.01063962
cmp dword [ebp - 0x240], 3
mov eax, 0x44f
jbe 0x1062ea6
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x234], esi
mov word [ebp - 0x230], ax
call fcn.01063b78
mov dword [ebp - 0x234], eax
cmp eax, esi
mov eax, 0x452
jl 0x1062eb0
push dword [ebp - 0x244]
mov word [ebp - 0x230], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1062c66
mov edx, dword [ebp - 0x244]
mov ecx, ebx
call fcn.0106470b
cmp eax, esi
mov dword [ebp - 0x234], eax
jge 0x1062c5c
mov eax, 0x459
jmp 0x1062eb0
mov eax, 0x45a
jmp 0x1062ba0
push 0x5c
pop edx
lea ecx, [ebp - 0x244]
call fcn.01063519
mov edi, eax
cmp edi, 0xffffffff
jne 0x1062c85
mov eax, 0x462
jmp 0x1062ea6
mov edx, dword [ebp - 0x244]
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x28c]
call fcn.010646ea
mov dword [ebp - 0x234], eax
cmp eax, esi
mov eax, 0x466
jl 0x1062eb0
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x244]
lea edx, [eax + edi*2 + 2]
lea ecx, [ebp - 0x25c]
call fcn.0106470b
mov dword [ebp - 0x234], eax
cmp eax, esi
mov eax, 0x469
jl 0x1062eb0
push 0x2e
pop edx
lea ecx, [ebp - 0x25c]
mov word [ebp - 0x230], ax
call fcn.01063519
mov edx, dword [ebp - 0x25c]
mov edi, eax
lea ecx, [ebp - 0x250]
cmp edi, 0xffffffff
je 0x1062d54
push edi
call fcn.010646ea
mov dword [ebp - 0x234], eax
cmp eax, esi
mov eax, 0x470
jl 0x1062eb0
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x25c]
lea edx, [eax + edi*2]
lea ecx, [ebp - 0x268]
call fcn.0106470b
mov dword [ebp - 0x234], eax
cmp eax, esi
mov eax, 0x471
jl 0x1062eb0
mov word [ebp - 0x230], ax
jmp 0x1062d7e
call fcn.0106470b
mov dword [ebp - 0x234], eax
cmp eax, esi
mov eax, 0x476
jl 0x1062eb0
lea ecx, [ebp - 0x268]
mov word [ebp - 0x230], ax
call fcn.010635d7
mov dword [ebp - 0x238], 1
mov edi, 0x101031c
mov ebx, 0x484
push dword [ebp - 0x268]
lea eax, [ebp - 0x274]
push dword [ebp - 0x238]
push dword [ebp - 0x250]
push edi
push eax
call fcn.01063c3a
add esp, 0x14
mov dword [ebp - 0x234], eax
cmp eax, esi
mov eax, 0x47d
jl 0x1062eb0
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x270]
cmp eax, 0xff
jbe 0x1062e4a
mov edx, dword [ebp - 0x24c]
add eax, 0xffffff01
cmp edx, eax
jbe 0x1062f28
sub edx, eax
lea ecx, [ebp - 0x250]
call fcn.01063624
cmp eax, esi
mov dword [ebp - 0x234], eax
jl 0x1062f3c
push dword [ebp - 0x268]
mov eax, ebx
push dword [ebp - 0x238]
mov word [ebp - 0x230], ax
push dword [ebp - 0x250]
lea eax, [ebp - 0x274]
push edi
push eax
call fcn.01063c3a
add esp, 0x14
mov dword [ebp - 0x234], eax
cmp eax, esi
mov eax, 0x48b
jl 0x1062eb0
mov word [ebp - 0x230], ax
push dword [ebp - 0x274]
mov edx, dword [ebp - 0x28c]
lea ecx, [ebp - 0x280]
call fcn.01064722
mov dword [ebp - 0x234], eax
cmp eax, esi
mov eax, 0x48e
jl 0x1062eb0
push dword [ebp - 0x280]
mov word [ebp - 0x230], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1062f48
inc dword [ebp - 0x238]
cmp dword [ebp - 0x238], 0x3e8
jb 0x1062d92
mov eax, 0x499
mov dword [ebp - 0x234], 0x80004005
mov word [ebp - 0x22e], ax
mov esi, dword [ebp - 0x234]
lea ecx, [ebp - 0x268]
call fcn.010635b3
lea ecx, [ebp - 0x274]
call fcn.010635b3
lea ecx, [ebp - 0x250]
call fcn.010635b3
lea ecx, [ebp - 0x25c]
call fcn.010635b3
lea ecx, [ebp - 0x280]
call fcn.010635b3
lea ecx, [ebp - 0x28c]
call fcn.010635b3
lea ecx, [ebp - 0x244]
call fcn.010635b3
lea ecx, [ebp - 0x234]
call fcn.01055a3c
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01054fa7
leave
ret 8
mov dword [ebp - 0x234], 0x80004005
mov eax, 0x489
jmp 0x1062eb0
mov word [ebp - 0x22e], bx
jmp 0x1062eb7
lea ecx, [ebp - 0x280]
call fcn.010636cf
mov edx, dword [ebp - 0x280]
mov ecx, dword [ebp - 0x290]
call fcn.0106470b
cmp eax, esi
mov dword [ebp - 0x234], eax
jge 0x1062f78
mov eax, 0x492
jmp 0x1062eb0
mov eax, 0x493
jmp 0x1062ba0