Function at 0x1002c140
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10173058
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x101d5024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x128], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x138], eax
lea eax, [ebx + 0x10]
push eax
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x120], 0
call fcn.1003a468
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.1003926b
cmp dword [ebp - 0xa4], 8
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0xb8]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.10039201
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1003a6ff
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.1003996f
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.1003a6ff
add esp, 0x30
mov esi, dword [ebx]
mov byte [ebp - 4], 5
cmp esi, dword [ebx + 4]
je 0x1002c36c
cmp dword [esi + 0x14], 0x10
jb 0x1002c24f
mov edx, dword [esi]
jmp 0x1002c251
mov edx, esi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [edx], 0
jne 0x1002c26c
xor ecx, ecx
jmp 0x1002c27a
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c271
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.1002b520
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x14], 0x10
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x48]
cmovae edx, ebx
cmp eax, edi
cmovb edi, eax
mov eax, dword [ebp - 0x14]
test edi, edi
je 0x1002c306
sub edi, 4
jb 0x1002c2c4
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x1002c2c9
add edx, 4
add ecx, 4
sub edi, 4
jae 0x1002c2b3
cmp edi, 0xfffffffc
je 0x1002c2fd
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x1002c2f6
cmp edi, 0xfffffffd
je 0x1002c2fd
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x1002c2f6
cmp edi, 0xfffffffe
je 0x1002c2fd
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x1002c2f6
cmp edi, 0xffffffff
je 0x1002c2fd
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x1002c2fd
sbb eax, eax
or eax, 1
jmp 0x1002c2ff
xor eax, eax
test eax, eax
jne 0x1002c316
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x18]
cmp edx, ecx
jb 0x1002c316
jbe 0x1002c4a8
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1002c35a
inc eax
cmp eax, 0x1000
jb 0x1002c351
test byte [ebp - 0x28], 0x1f
jne 0x1002c4bb
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x1002c4bb
sub ebx, eax
cmp ebx, 4
jb 0x1002c4bb
cmp ebx, 0x23
ja 0x1002c4bb
mov ebx, eax
push ebx
call fcn.1003355e
add esp, 4
mov eax, dword [ebp - 0x128]
add esi, 0x18
cmp esi, dword [eax + 4]
jne 0x1002c245
xor esi, esi
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x1002c383
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.10029f40
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 8
jb 0x1002c3b3
inc eax
lea ecx, [ebp - 0xd0]
push eax
push dword [ebp - 0xd0]
call fcn.10025830
xor eax, eax
mov dword [ebp - 0xbc], 7
mov word [ebp - 0xd0], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xc0], 0
cmp eax, 0x10
jb 0x1002c3e5
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.10029f40
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp eax, 8
jb 0x1002c415
inc eax
lea ecx, [ebp - 0xe8]
push eax
push dword [ebp - 0xe8]
call fcn.10025830
xor eax, eax
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xd8], 0
cmp eax, 8
jb 0x1002c450
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.10025830
xor eax, eax
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xa8], 0
cmp eax, 8
jb 0x1002c488
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.10025830
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003357f
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x10
jb 0x1002c4ed
inc eax
cmp eax, 0x1000
jb 0x1002c4e4
test byte [ebp - 0x28], 0x1f
je 0x1002c4c0
call fcn.1004fc61
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x1002c4cc
call fcn.1004fc61
sub ebx, eax
cmp ebx, 4
jae 0x1002c4d8
call fcn.1004fc61
cmp ebx, 0x23
jbe 0x1002c4e2
call fcn.1004fc61
mov ebx, eax
push ebx
call fcn.1003355e
add esp, 4
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x1002c50a
mov eax, dword [ecx]
jmp 0x1002c50c
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0xb8]
push edx
push eax
call fcn.10025950
mov esi, dword [ebp - 0x138]
lea eax, [ebp - 0xa0]
mov ebx, dword [ebp - 0x128]
mov ecx, ebx
push esi
push eax
call fcn.1002bf30
cmp dword [ebp + 0xc], 0
mov byte [ebp - 4], 6
je 0x1002c5e6
cmp dword [ebx + 0xb0], 0
je 0x1002c579
push 1
lea eax, [ebp - 0xa0]
push eax
sub esp, 0x18
lea ecx, [ebx + 0x10]
mov eax, esp
push ecx
push eax
call fcn.1003a468
mov ecx, dword [ebx + 0xb0]
add esp, 8
push esi
call fcn.10028bc0
cmp dword [ebp - 0x8c], 8
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002c8d3
lea eax, [ebp - 0x120]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x1002c5c0
mov eax, dword [ecx]
jmp 0x1002c5c2
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0xa0]
push edx
push eax
call fcn.10025950
call fcn.10038dc2
add esp, 0x1c
mov dword [ebx + 0x64], eax
jmp 0x1002c8d3
mov ecx, dword [ebp - 0x12c]
push 0xffffffffffffffff
push 0
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.1002b3f0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1002b3f0
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 8
push str.33149861036558401157004170431616
push eax
call fcn.1003897f
mov esi, eax
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 9
push str.92592559036756381167660468490824
push eax
call fcn.1003897f
push esi
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xa
push eax
call fcn.1003a14f
mov eax, dword [ebp - 0xec]
add esp, 0x1c
mov byte [ebp - 4], 9
cmp eax, 0x10
jb 0x1002c6c3
mov ecx, dword [ebp - 0x100]
inc eax
cmp eax, 0x1000
jb 0x1002c6ba
test cl, 0x1f
je 0x1002c696
call fcn.1004fc61
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x1002c6a2
call fcn.1004fc61
sub ecx, eax
cmp ecx, 4
jae 0x1002c6ae
call fcn.1004fc61
cmp ecx, 0x23
jbe 0x1002c6b8
call fcn.1004fc61
mov ecx, eax
push ecx
call fcn.1003355e
add esp, 4
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xec], 0xf
mov dword [ebp - 0xf0], 0
mov byte [ebp - 0x100], 0
mov byte [ebp - 4], 8
cmp eax, 0x10
jb 0x1002c732
mov ecx, dword [ebp - 0x118]
inc eax
cmp eax, 0x1000
jb 0x1002c729
test cl, 0x1f
je 0x1002c705
call fcn.1004fc61
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x1002c711
call fcn.1004fc61
sub ecx, eax
cmp ecx, 4
jae 0x1002c71d
call fcn.1004fc61
cmp ecx, 0x23
jbe 0x1002c727
call fcn.1004fc61
mov ecx, eax
push ecx
call fcn.1003355e
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
lea edx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
mov esi, edi
cmp dword [ebp - 0x2c], 0x10
mov ebx, dword [ebp - 0x30]
cmovae edx, dword [ebp - 0x40]
cmp ebx, edi
cmovb esi, ebx
test esi, esi
je 0x1002c7b0
sub esi, 4
jb 0x1002c771
nop
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x1002c776
add edx, 4
add ecx, 4
sub esi, 4
jae 0x1002c760
cmp esi, 0xfffffffc
je 0x1002c7aa
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x1002c7a3
cmp esi, 0xfffffffd
je 0x1002c7aa
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x1002c7a3
cmp esi, 0xfffffffe
je 0x1002c7aa
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x1002c7a3
cmp esi, 0xffffffff
je 0x1002c7aa
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x1002c7aa
sbb eax, eax
or eax, 1
jmp 0x1002c7ac
xor eax, eax
test eax, eax
jne 0x1002c7ef
cmp ebx, edi
jb 0x1002c7ef
ja 0x1002c7ef
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x1002c7d3
mov eax, dword [ecx]
jmp 0x1002c7d5
mov eax, ecx
push 0xffffffffffffffff
push 0
push dword [ebp - 0x12c]
mov byte [eax], 0
call fcn.1002b3f0
mov ebx, dword [ebp - 0x128]
jmp 0x1002c860
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x1002c80c
mov eax, dword [ecx]
jmp 0x1002c80e
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.1002b3f0
mov ebx, dword [ebp - 0x128]
mov ecx, ebx
call fcn.1002bc10
mov dword [ebp - 0x120], eax
test eax, eax
jne 0x1002c875
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], eax
cmp dword [ecx + 0x14], 0x10
jb 0x1002c84e
mov eax, dword [ecx]
jmp 0x1002c850
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.1002b3f0
mov ecx, ebx
call fcn.1002bc10
mov dword [ebp - 0x120], eax
test eax, eax
jne 0x1002c875
push 1
jmp 0x1002c877
push 2
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
push 1
push 1
call fcn.10029b00
mov ecx, eax
call fcn.10030e60
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1002c8a8
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10029f40
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 6
cmp eax, 0x10
jb 0x1002c8d3
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10029f40
cmp dword [ebp - 0x120], 0
jne 0x1002c8e3
xor esi, esi
jmp 0x1002c97a
lea ecx, [ebp - 0x119]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x134], 0
call fcn.1002ac30
lea eax, [ebx + 0x40]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x120]
lea ecx, [ebp - 0x119]
push dword [ebx + 0x64]
call fcn.1002d510
mov ecx, dword [ebp - 0x130]
test ecx, ecx
je 0x1002c94e
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x1002c94e
push eax
push ecx
call fcn.1002f480
add esp, 8
mov esi, eax
jmp 0x1002c96f
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
push 0x89
call fcn.1003b29e
add esp, 8
xor esi, esi
lea ecx, [ebp - 0x119]
call fcn.1004f490
mov eax, dword [ebp - 0x8c]
cmp eax, 8
jb 0x1002c998
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.10025830
xor eax, eax
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
jmp 0x1002c36e