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

Disassembly:
push 0x304
mov eax, 0x10022779
call fcn.1000a913
mov ebx, dword [ebp + 0x2c]
push dword [ebp + 0x14]
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 4], 2
call fcn.1000452a
push dword [ebp + 0x20]
lea ecx, [ebp - 0x308]
mov byte [ebp - 4], 3
call fcn.1000452a
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 0x10023318
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 8
call fcn.10005515
mov esi, eax
test esi, esi
jle 0x10004eb0
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.10005447
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x260]
call fcn.10004567
lea ecx, [ebp - 0x230]
call fcn.1000536c
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.10005447
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x248]
call fcn.10004567
lea ecx, [ebp - 0x230]
call fcn.1000536c
jmp 0x10004ed4
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x260]
call fcn.10004590
lea eax, [ebp - 0x308]
push eax
lea ecx, [ebp - 0x248]
call fcn.10004590
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jbe 0x10004ee5
push eax
lea ecx, [ebp + 8]
call fcn.10001f53
push dword [ebp + 8]
lea ecx, [ebp - 0x2d8]
call fcn.1000452a
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.100053e9
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.100052d7
push 0x10023318
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x2f0]
push eax
call fcn.100041ea
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.100053e9
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.100052d7
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.10004567
lea ecx, [ebp - 0x230]
call fcn.1000536c
lea ecx, [ebp - 0x2f0]
call fcn.1000536c
lea ecx, [ebp - 0x290]
call fcn.1000536c
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 8
call fcn.1000536c
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x278]
call fcn.10004590
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 0x1000519f
test al, 0x10
jne 0x1000519f
push 0x208
lea eax, [ebp - 0x218]
inc edi
push 0
push eax
call fcn.1000cec0
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.1000fd4a
add esp, 0x20
lea ecx, [ebp - 0x278]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10005485
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jbe 0x10005098
push eax
lea ecx, [ebp + 8]
call fcn.10001f53
push dword [ebp + 8]
lea ecx, [ebp - 0x2f0]
call fcn.1000452a
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.100053e9
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.100052d7
push 0x10023318
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x2d8]
push eax
call fcn.100041ea
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.100053e9
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.100052d7
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.10004567
lea ecx, [ebp - 0x290]
call fcn.1000536c
lea ecx, [ebp - 0x2d8]
call fcn.1000536c
lea ecx, [ebp - 0x230]
call fcn.1000536c
lea ecx, [ebp - 0x2f0]
mov byte [ebp - 4], 8
call fcn.1000536c
jmp 0x10004ffc
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x260]
call fcn.10004590
push 0x10023318
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x2d8]
push eax
call fcn.10004212
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.100053e9
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.100052d7
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.1000196a
lea ecx, [ebp - 0x230]
call fcn.1000536c
lea ecx, [ebp - 0x2d8]
call fcn.1000536c
lea ecx, [ebp - 0x278]
call fcn.1000536c
lea ecx, [ebp - 0x248]
call fcn.1000536c
lea ecx, [ebp - 0x260]
call fcn.1000536c
lea ecx, [ebp - 0x2a8]
call fcn.1000536c
lea ecx, [ebp - 0x308]
call fcn.1000536c
lea ecx, [ebp - 0x2c0]
call fcn.1000536c
push dword [ebp + 8]
call fcn.1000a8a3
push dword [ebp + 0x14]
call fcn.1000a8a3
push dword [ebp + 0x20]
call fcn.1000a8a3
add esp, 0xc
mov al, 1
call fcn.1000a8bd
ret 0x28