Function at 0x1001a200
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x4c
mov eax, dword [0x1012f5f0]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x58]
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [eax], ecx
mov eax, dword [esp + 0x54]
sub eax, ecx
mov dword [esp + 8], ecx
mov dword [esp], ecx
je 0x1001a24d
sub eax, 2
je 0x1001a24d
sub eax, 0x15
je 0x1001a24d
lea eax, [ecx + 9]
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.1001d3e9
add esp, 0x4c
ret
push ebx
push ebp
push esi
push edi
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x38]
push ecx
push edx
lea edi, [esp + 0x20]
call fcn.1001c380
add esp, 8
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x1001a674
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
mov eax, edi
je 0x1001a28d
mov edi, edi
cmp byte [eax], 0x23
je 0x1001a28d
add eax, 1
cmp byte [eax], 0
jne 0x1001a280
lea esi, [eax - 1]
cmp esi, edi
mov byte [eax], 0
jb 0x1001a2ae
movzx eax, byte [esi]
push eax
call fcn.1001fed5
add esp, 4
test eax, eax
je 0x1001a2ae
sub esi, 1
cmp esi, edi
jae 0x1001a297
mov byte [esi + 1], 0
cmp byte [edi], 0
mov esi, edi
je 0x1001a2dd
lea esp, [esp]
movzx ecx, byte [esi]
push ecx
call fcn.1001fed5
add esp, 4
test eax, eax
je 0x1001a2dd
add esi, 1
cmp byte [esi], 0
jne 0x1001a2c0
jmp 0x1001a251
cmp byte [esi], 0
je 0x1001a251
mov dword [esp + 0x24], esi
lea ebx, [ebx]
movzx edx, byte [esi]
push edx
call fcn.1001fed5
add esp, 4
test eax, eax
jne 0x1001a307
add esi, 1
cmp byte [esi], al
jne 0x1001a2f0
cmp byte [esi], 0
je 0x1001a251
mov byte [esi], 0
mov al, byte [esi + 1]
add esi, 1
test al, al
je 0x1001a251
movzx eax, al
push eax
call fcn.1001fed5
add esp, 4
test eax, eax
je 0x1001a340
mov al, byte [esi + 1]
add esi, 1
test al, al
jne 0x1001a321
jmp 0x1001a251
cmp byte [esi], 0
je 0x1001a251
mov dword [esp + 0x30], esi
lea ecx, [ecx]
movzx ecx, byte [esi]
push ecx
call fcn.1001fed5
add esp, 4
test eax, eax
jne 0x1001a367
add esi, 1
cmp byte [esi], al
jne 0x1001a350
xor ebx, ebx
cmp byte [esi], bl
mov dword [esp + 0x14], ebx
je 0x1001a3a7
mov al, byte [esi + 1]
test al, al
lea edi, [esi + 1]
je 0x1001a3a7
jmp 0x1001a380
movzx edx, al
push edx
call fcn.1001fed5
add esp, 4
test eax, eax
je 0x1001a39c
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x1001a380
jmp 0x1001a3a7
cmp byte [edi], 0
je 0x1001a3a7
mov ebx, edi
mov dword [esp + 0x14], edi
xor ebp, ebp
test ebx, ebx
mov byte [esi], 0
mov dword [esp + 0x20], ebp
je 0x1001a416
cmp byte [ebx], 0
mov esi, ebx
je 0x1001a416
jmp 0x1001a3c0
mov al, byte [esi]
test al, al
je 0x1001a40a
movzx eax, al
push eax
call fcn.1001fed5
add esp, 4
test eax, eax
jne 0x1001a3e2
mov al, byte [esi + 1]
add esi, 1
test al, al
jne 0x1001a3c6
jmp 0x1001a40a
mov al, byte [esi]
test al, al
je 0x1001a40a
jmp 0x1001a3f0
movzx ecx, al
push ecx
call fcn.1001fed5
add esp, 4
test eax, eax
je 0x1001a40a
mov al, byte [esi + 1]
add esi, 1
test al, al
jne 0x1001a3f0
add ebp, 1
cmp byte [esi], 0
jne 0x1001a3c0
mov dword [esp + 0x20], ebp
mov ebx, dword [esp + 0x64]
xor edi, edi
cmp ebx, 2
mov dword [esp + 0x1c], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 0xffffffff
je 0x1001a435
cmp ebx, edi
jne 0x1001a47b
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x40]
push 4
push edx
call fcn.100195d0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x1001a45a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1001a47b
xor eax, eax
cmp esi, 0xffffffff
setg al
lea eax, [eax + eax - 1]
test eax, eax
jle 0x1001a47b
mov edi, 4
mov dword [esp + 0x3c], 2
mov dword [esp + 0x1c], edi
cmp ebx, 0x17
je 0x1001a488
test ebx, ebx
jne 0x1001a4be
test edi, edi
jne 0x1001a4d9
mov ecx, dword [esp + 0x24]
push 0x10
lea eax, [esp + 0x44]
push eax
push ecx
call fcn.10019aa0
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x1001a4ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1001a4be
xor eax, eax
cmp esi, 0xffffffff
setg al
lea eax, [eax + eax - 1]
test eax, eax
jg 0x1001a4c8
test edi, edi
je 0x1001a251
jmp 0x1001a4d9
mov edi, 0x10
mov dword [esp + 0x3c], 0x17
mov dword [esp + 0x1c], edi
push 0x10
call dword [0x10138fd4]
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
je 0x1001a674
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x30]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
call fcn.1001a810
test eax, eax
mov dword [esi], eax
je 0x1001a674
push 8
call dword [0x10138fd4]
add esp, 4
test eax, eax
mov edx, esi
mov dword [edx + 0xc], eax
je 0x1001a674
push edi
mov dword [eax + 4], 0
call dword [0x10138fd4]
mov ecx, esi
mov edx, dword [ecx + 0xc]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
add esp, 4
cmp dword [eax], 0
je 0x1001a674
cmp dword [esp + 0x3c], 2
mov eax, dword [eax]
jne 0x1001a55c
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
jmp 0x1001a577
mov edx, dword [esp + 0x40]
mov dword [eax], edx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x48]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0xc], ecx
lea edx, [ebp*4 + 4]
push edx
call dword [0x10138fd4]
mov ecx, dword [esp + 0x14]
add esp, 4
test eax, eax
mov dword [ecx + 4], eax
je 0x1001a674
mov ebp, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1001a5ae
sub eax, 1
mov dword [ebp + eax*4 + 4], 0
jne 0x1001a5a1
cmp dword [esp + 0x14], 0
mov dword [ebp], 0
je 0x1001a62c
lea esp, [esp]
mov esi, dword [esp + 0x14]
cmp byte [esi], 0
je 0x1001a5e7
lea esp, [esp]
movzx edx, byte [esi]
push edx
call fcn.1001fed5
add esp, 4
test eax, eax
jne 0x1001a5e7
add esi, 1
cmp byte [esi], al
jne 0x1001a5d0
cmp byte [esi], 0
mov edi, esi
je 0x1001a608
mov edi, edi
movzx eax, byte [edi]
push eax
call fcn.1001fed5
add esp, 4
test eax, eax
je 0x1001a608
add edi, 1
cmp byte [edi], 0
jne 0x1001a5f0
mov ebx, dword [esp + 0x14]
mov byte [esi], 0
call fcn.1001a810
test eax, eax
mov dword [ebp], eax
je 0x1001a674
mov cl, byte [edi]
add ebp, 4
neg cl
sbb ecx, ecx
and ecx, edi
mov dword [esp + 0x14], ecx
jne 0x1001a5c0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
and eax, 0x7fff
mov word [esi + 0xa], ax
mov eax, dword [esp + 0x18]
and edx, 0x7fff
push eax
mov word [esi + 8], dx
call dword [0x10138fdc]
mov ecx, dword [esp + 0x2c]
add esp, 4
pop edi
mov dword [ecx], esi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.1001d3e9
add esp, 0x4c
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1001a686
push eax
call dword [0x10138fdc]
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x1001a708
mov edi, dword [esp + 0x10]
test edi, edi
je 0x1001a703
mov eax, dword [edi]
test eax, eax
je 0x1001a6a6
push eax
call dword [0x10138fdc]
add esp, 4
mov esi, dword [edi + 4]
test esi, esi
je 0x1001a6d4
mov eax, dword [esi]
test eax, eax
je 0x1001a6c7
push eax
call dword [0x10138fdc]
mov eax, dword [esi + 4]
add esi, 4
add esp, 4
test eax, eax
jne 0x1001a6b3
mov edx, dword [edi + 4]
push edx
call dword [0x10138fdc]
add esp, 4
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1001a6f9
cmp dword [eax], 0
je 0x1001a6ec
mov eax, dword [eax]
push eax
call dword [0x10138fdc]
add esp, 4
mov ecx, dword [edi + 0xc]
push ecx
call dword [0x10138fdc]
add esp, 4
push edi
call dword [0x10138fdc]
add esp, 4
mov eax, 0xf
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001d3e9
add esp, 0x4c
ret