Function at 0x10013232
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x304
mov eax, 0x1004f795
call fcn.100186c5
mov ebx, dword [ebp + 0x2c]
push dword [ebp + 0x14]
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 4], 2
call fcn.10003e91
push dword [ebp + 0x20]
lea ecx, [ebp - 0x308]
mov byte [ebp - 4], 3
call fcn.10003e91
push 7
xor ecx, ecx
xor eax, eax
pop edx
mov dword [ebp - 0x298], ecx
mov dword [ebp - 0x294], edx
mov word [ebp - 0x2a8], ax
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x24c], edx
mov word [ebp - 0x260], ax
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], edx
mov word [ebp - 0x248], ax
mov edi, ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x264], edx
mov word [ebp - 0x278], ax
push 0xffffffffffffffff
push 0x10056324
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 8
call fcn.10013789
mov esi, eax
test esi, esi
jle 0x10013382
and dword [ebp - 0x220], edi
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x21c], 7
push esi
push eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x2c0]
push eax
call fcn.1000632d
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x260]
call fcn.10003ec7
lea ecx, [ebp - 0x230]
call fcn.10004033
and dword [ebp - 0x220], edi
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x2b0]
sub eax, esi
dec eax
push eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x2c0]
push eax
call fcn.1000632d
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x248]
call fcn.10003ec7
lea ecx, [ebp - 0x230]
call fcn.10004033
jmp 0x100133a6
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x260]
call fcn.10003ef0
lea eax, [ebp - 0x308]
push eax
lea ecx, [ebp - 0x248]
call fcn.10003ef0
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jbe 0x100133b7
push eax
lea ecx, [ebp + 8]
call fcn.10010760
push dword [ebp + 8]
lea ecx, [ebp - 0x2d8]
call fcn.10003e91
push 8
pop esi
cmp dword [ebp - 0x24c], esi
lea ecx, [ebp - 0x260]
push dword [ebp - 0x250]
cmovae ecx, dword [ebp - 0x260]
push ecx
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.10004080
xor ecx, ecx
mov byte [ebp - 0x30c], cl
push dword [ebp - 0x30c]
mov dword [ebp - 0x280], ecx
mov dword [ebp - 0x27c], ecx
lea ecx, [ebp - 0x290]
push eax
call fcn.10003f59
push 0x10056324
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x2f0]
push eax
call fcn.1000f52f
add esp, 0xc
cmp dword [ebp - 0x234], esi
lea ecx, [ebp - 0x248]
push dword [ebp - 0x238]
cmovae ecx, dword [ebp - 0x248]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.10004080
xor ecx, ecx
mov byte [ebp - 0x30c], cl
push dword [ebp - 0x30c]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x230]
push eax
call fcn.10003f59
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.10003ec7
lea ecx, [ebp - 0x230]
call fcn.10004033
lea ecx, [ebp - 0x2f0]
call fcn.10004033
lea ecx, [ebp - 0x290]
call fcn.10004033
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 8
call fcn.10004033
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x278]
call fcn.10003ef0
push 8
pop esi
cmp dword [ebp - 0x294], esi
lea eax, [ebp - 0x2a8]
cmovae eax, dword [ebp - 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10013677
test al, 0x10
jne 0x10013677
push 0x208
lea eax, [ebp - 0x218]
inc edi
push 0
push eax
call fcn.1002f640
cmp dword [ebp - 0x24c], esi
lea eax, [ebp - 0x260]
push edi
cmovae eax, dword [ebp - 0x260]
push eax
lea eax, [ebp - 0x218]
push str._s__d_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x218]
push eax
call fcn.10033e5f
add esp, 0x20
lea ecx, [ebp - 0x278]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1000411b
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jbe 0x1001356d
push eax
lea ecx, [ebp + 8]
call fcn.10010760
push dword [ebp + 8]
lea ecx, [ebp - 0x2f0]
call fcn.10003e91
cmp dword [ebp - 0x264], esi
lea ecx, [ebp - 0x278]
push dword [ebp - 0x268]
cmovae ecx, dword [ebp - 0x278]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.10004080
xor ecx, ecx
mov byte [ebp - 0x30c], cl
push dword [ebp - 0x30c]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x230]
push eax
call fcn.10003f59
push 0x10056324
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x2d8]
push eax
call fcn.1000f52f
add esp, 0xc
cmp dword [ebp - 0x234], esi
lea ecx, [ebp - 0x248]
push dword [ebp - 0x238]
cmovae ecx, dword [ebp - 0x248]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.10004080
xor ecx, ecx
mov byte [ebp - 0x310], cl
push dword [ebp - 0x310]
mov dword [ebp - 0x280], ecx
mov dword [ebp - 0x27c], ecx
lea ecx, [ebp - 0x290]
push eax
call fcn.10003f59
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.10003ec7
lea ecx, [ebp - 0x290]
call fcn.10004033
lea ecx, [ebp - 0x2d8]
call fcn.10004033
lea ecx, [ebp - 0x230]
call fcn.10004033
lea ecx, [ebp - 0x2f0]
mov byte [ebp - 4], 8
call fcn.10004033
jmp 0x100134d1
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x260]
call fcn.10003ef0
push 0x10056324
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x2d8]
push eax
call fcn.100129cf
add esp, 0xc
cmp dword [ebp - 0x234], esi
lea ecx, [ebp - 0x248]
push dword [ebp - 0x238]
cmovae ecx, dword [ebp - 0x248]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xf
call fcn.10004080
xor ecx, ecx
mov byte [ebp - 0x310], cl
push dword [ebp - 0x310]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x230]
push eax
call fcn.10003f59
cmp dword [ebp - 0x21c], esi
lea eax, [ebp - 0x230]
mov ecx, ebx
mov byte [ebp - 4], 0x10
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.10010181
lea ecx, [ebp - 0x230]
call fcn.10004033
lea ecx, [ebp - 0x2d8]
call fcn.10004033
lea ecx, [ebp - 0x278]
call fcn.10004033
lea ecx, [ebp - 0x248]
call fcn.10004033
lea ecx, [ebp - 0x260]
call fcn.10004033
lea ecx, [ebp - 0x2a8]
call fcn.10004033
lea ecx, [ebp - 0x308]
call fcn.10004033
lea ecx, [ebp - 0x2c0]
call fcn.10004033
push dword [ebp + 8]
call fcn.10018644
push dword [ebp + 0x14]
call fcn.10018644
push dword [ebp + 0x20]
call fcn.10018644
add esp, 0xc
mov al, 1
call fcn.1001866f
ret