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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100175f8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x1001d080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [0x10023320]
mov edi, 8
mov dword [ebp - 0x18], eax
cmp dword [esi + 0x14], edi
jb 0x10006441
mov eax, dword [esi]
jmp 0x10006443
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100064e0
lea ecx, [ebp + 0xb]
push ecx
lea edx, [ebp - 0x60]
push edx
call fcn.10005450
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], edi
jb 0x1000646e
mov eax, dword [esi]
jmp 0x10006470
mov eax, esi
push eax
lea ecx, [ebp - 0x60]
call fcn.100056d0
add esp, 4
test al, al
jne 0x1000648f
cmp dword [esi + 0x14], edi
jb 0x10006487
mov esi, dword [esi]
push esi
push str.Unable_to_read_balls_map___s_
jmp 0x100064a9
mov eax, dword [ebp - 0x5c]
mov edi, dword [eax]
mov dword [ebp - 0x14], edi
cmp edi, eax
jne 0x100064f7
cmp dword [esi + 0x14], 8
jb 0x100064a3
mov esi, dword [esi]
push esi
push str.Balls_map___s__read
push ebx
call dword [sym.imp.kload.dll__LogX]
mov eax, dword [ebp - 0x50]
add esp, 0xc
cmp eax, ebx
je 0x100064c3
push eax
call fcn.10007dc9
add esp, 4
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
lea ebx, [ebp - 0x5c]
call fcn.10005670
mov eax, dword [ebp - 0x5c]
push eax
call fcn.10007dc9
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x14]
lea esi, [edi + 0xc]
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x10006508
mov eax, dword [esi]
jmp 0x1000650a
mov eax, esi
cmp word [eax], 0x22
jne 0x1000651c
mov eax, 1
xor ecx, ecx
call fcn.100037e0
mov ecx, dword [esi + 0x10]
dec ecx
cmp dword [esi + 0x14], ebx
jb 0x10006529
mov eax, dword [esi]
jmp 0x1000652b
mov eax, esi
cmp word [eax + ecx*2], 0x22
jne 0x1000653a
or eax, 0xffffffff
call fcn.100037e0
mov cx, word [edi + 8]
mov word [ebp - 0x28], cx
cmp dword [esi + 0x14], ebx
jb 0x10006549
mov esi, dword [esi]
push esi
call fcn.10001190
mov dx, word [edi + 8]
mov ecx, dword [ebp - 0x18]
mov ebx, eax
mov eax, dword [ebp - 0x28]
mov word [ebp - 0x34], dx
mov edx, dword [ecx + 4]
mov edi, dword [edx]
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 4]
push eax
push edi
lea esi, [ebp - 0x34]
mov dword [ebp - 0x2c], ebx
call fcn.10006f10
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 8]
mov esi, 0x15555554
sub esi, ecx
cmp esi, 1
jb 0x100065ea
inc ecx
mov dword [edx + 8], ecx
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea ecx, [ebp - 0x20]
push ecx
push edx
call fcn.10006a70
cmp byte [ebp - 0x1c], 0
jne 0x100065cf
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100065cc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x10], ebx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x5c]
jne 0x100064f4
mov esi, dword [ebp + 8]
xor ebx, ebx
jmp 0x1000649b
push str.list_T__too_long
call fcn.10006f99
int3