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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x30002838]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x28]
and dword [ebp - 0x230], 0
mov dword [ebp - 0x234], edx
mov edx, dword [ebx + 0x2c]
push esi
mov esi, dword [ebx + 8]
push edi
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x22c], edx
mov edx, dword [ebx + 0x30]
mov dword [ebp - 0x214], edx
lea edx, [ebp - 0x214]
push edx
lea edx, [ebp - 0x22c]
push edx
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x234]
push edx
push dword [ebx + 0x24]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebx + 0x20]
push eax
push edi
mov dword [ebp - 0x238], ecx
mov ecx, dword [ebx + 0x10]
push esi
mov dword [ebp - 0x224], 0x80004005
call fcn.30009b77
test eax, eax
je 0x3000bf2e
cmp dword [ebp - 0x214], 0
je 0x3000bf2e
mov ecx, dword [ebp - 0x22c]
xor eax, eax
cmp eax, ecx
sbb eax, eax
neg eax
lea edx, [eax + ecx]
sub edi, eax
mov eax, dword [ebp - 0x214]
lea edx, [esi + edx*2]
mov esi, dword [ebp - 0x228]
sub edi, ecx
cmp eax, dword [esi]
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x218], edi
jne 0x3000bc6c
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call fcn.3000684e
cmp eax, edi
jne 0x3000bc66
mov esi, dword [ebp - 0x21c]
lea ecx, [edi + edi]
mov edi, dword [ebp - 0x220]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x3000bc88
mov esi, dword [ebp - 0x228]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax + 0x18]
and cl, 0xf0
cmp cl, 0x40
jne 0x3000bc9d
mov esi, dword [esi]
lea edi, [esi + 0x50]
push 4
lea esi, [eax + 0x50]
pop ecx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x3000bc97
mov dword [ebp - 0x224], 1
jmp 0x3000bf2e
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax + 0x64]
test ecx, 0x20000
je 0x3000bd0b
mov esi, dword [ebp - 0x218]
push 2
add esi, 3
xor ecx, ecx
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.MSO.dll_Ordinal_815]
mov edi, eax
test edi, edi
je 0x3000bdaa
mov eax, dword [ebp - 0x214]
mov eax, dword [eax + 0x78]
mov ax, word [eax]
mov word [edi], ax
mov word [edi + 2], 0x3a
mov word [edi + 4], 0x5c
mov eax, dword [ebp - 0x218]
inc eax
push eax
lea eax, [edi + 6]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.MSO.dll_Ordinal_6877]
jmp 0x3000bdaa
test ecx, 0x800000
je 0x3000bdb2
lea ecx, [ebp - 0x210]
push ecx
push 0
mov ecx, eax
call fcn.300079f2
test eax, eax
je 0x3000bf2e
mov eax, dword [ebp - 0x210]
mov esi, dword [eax + 0x4c]
mov eax, dword [eax + 0x78]
lea eax, [eax + esi*2]
jmp 0x3000bd43
dec esi
dec eax
dec eax
cmp word [eax], 0x5c
jne 0x3000bd40
mov eax, dword [ebp - 0x218]
push 2
lea eax, [esi + eax + 2]
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call dword [sym.imp.MSO.dll_Ordinal_815]
mov edi, eax
test edi, edi
je 0x3000bda0
lea eax, [esi + esi + 2]
push eax
mov eax, dword [ebp - 0x210]
push dword [eax + 0x78]
push edi
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp - 0x218]
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x220]
lea eax, [edi + esi*2 + 2]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0x18
mov eax, dword [ebp - 0x218]
lea esi, [eax + esi + 1]
mov dword [ebp - 0x21c], edi
jmp 0x3000be24
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call fcn.3000fdf6
mov esi, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x214]
mov edi, eax
lea eax, [ebp - 0x21c]
push eax
mov eax, 0x103
sub eax, esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.300067c4
cmp eax, 0xffffffff
je 0x3000bf2e
test eax, eax
je 0x3000bf2e
mov ecx, dword [ebp - 0x21c]
lea eax, [ecx + eax*2]
mov word [eax], 0x5c
mov ecx, dword [ebp - 0x218]
inc ecx
push ecx
add eax, 2
push eax
push dword [ebp - 0x220]
call dword [sym.imp.MSO.dll_Ordinal_6877]
test edi, edi
je 0x3000bf2e
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x3000be49
mov dword [ebp - 0x224], 0x87650003
jmp 0x3000be7f
push 0x90
call dword [sym.imp.MSO.dll_Ordinal_815]
test eax, eax
je 0x3000be6f
push esi
push edi
push dword [ebp - 0x228]
mov ecx, eax
call fcn.3000785b
mov dword [ebp - 0x210], eax
jmp 0x3000be76
and dword [ebp - 0x210], 0
cmp dword [ebp - 0x210], 0
jne 0x3000be8b
push edi
call fcn.30003200
pop ecx
jmp 0x3000bf2e
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x210]
lea esi, [eax + 4]
mov dword [ecx], eax
cmp dword [esi + 4], 0
jne 0x3000bec5
push 0x10
push 0x20
push 4
push esi
call fcn.30010b87
test eax, eax
jne 0x3000bec5
push dword [ebp - 0x210]
mov ecx, dword [ebp - 0x238]
call fcn.3000af00
jmp 0x3000bf2e
push 0
push 0x30006758
push 1
lea eax, [ebp - 0x210]
push eax
push esi
call fcn.30010bd4
test eax, eax
je 0x3000befc
push dword [ebp - 0x210]
mov ecx, dword [ebp - 0x238]
call fcn.3000af00
mov dword [ebp - 0x224], 0x87650003
jmp 0x3000bf2e
mov eax, dword [ebp - 0x228]
and dword [eax + 0x18], 0
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 0x18]
and ecx, 0xffffff4f
or ecx, 0x40
and dword [ebp - 0x224], 0
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x234]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x214]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x224]
test eax, eax
pop edi
pop esi
pop ebx
jne 0x3000bf64
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x23c]
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30015018
leave
ret 0xc