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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x645400
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push esi
push edi
mov eax, dword [0x6d3438]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x4a70e5
xor ecx, ecx
cmp cx, word [eax]
je 0x4a70e5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4a70e5
push 1
lea ecx, [ebp - 0x98]
call fcn.004a5590
mov edi, dword [edi + 0x4c]
mov dword [ebp - 4], 0
call fcn.004213d0
mov ebx, eax
test ebx, ebx
je 0x4a70f9
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x659730]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test edi, edi
je 0x4a6ef4
test edi, 0xffff0000
jne 0x4a6ede
movzx eax, di
lea ecx, [ebp - 0x14]
push eax
call fcn.0042b6d0
jmp 0x4a6f00
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a6ee3
sub ecx, edx
sar ecx, 1
jmp 0x4a6ef6
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x14]
call fcn.0042b7e0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x98]
call fcn.004bece0
mov ecx, dword [ebp - 0x14]
test al, al
mov byte [ebp - 4], 0
sete bl
add ecx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4a6f43
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x659730]
mov ecx, edi
call esi
test bl, bl
jne 0x4a70a7
mov edi, dword [str.LastLogIdx]
mov dword [ebp - 0x20], 0
call fcn.004213d0
mov ebx, eax
test ebx, ebx
je 0x4a70f9
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x659730]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
test edi, edi
je 0x4a6fb2
test edi, 0xffff0000
jne 0x4a6f9c
movzx eax, di
lea ecx, [ebp - 0x1c]
push eax
call fcn.0042b6d0
jmp 0x4a6fbe
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a6fa1
sub ecx, edx
sar ecx, 1
jmp 0x4a6fb4
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x1c]
call fcn.0042b7e0
mov edi, dword [str.Config]
mov byte [ebp - 4], 4
call fcn.004213d0
mov ebx, eax
test ebx, ebx
je 0x4a70f9
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x659730]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
test edi, edi
je 0x4a7022
test edi, 0xffff0000
jne 0x4a700c
movzx eax, di
lea ecx, [ebp - 0x18]
push eax
call fcn.0042b6d0
jmp 0x4a702e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7011
sub ecx, edx
sar ecx, 1
jmp 0x4a7024
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x18]
call fcn.0042b7e0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x98]
call fcn.004bd7f0
mov ecx, dword [ebp - 0x18]
test al, al
sete byte [ebp - 0xd]
or ebx, 0xffffffff
add ecx, 0xfffffff0
mov eax, ebx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4a7078
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x659730]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4a709c
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x659730]
mov ecx, edi
call esi
cmp byte [ebp - 0xd], 0
jne 0x4a70a7
mov esi, dword [ebp - 0x20]
jmp 0x4a70a9
xor esi, esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x98], vtable.CoreTech::CObfuscatedIniReader.0
call fcn.004a58d0
lea ecx, [ebp - 0x84]
call fcn.004a5870
lea ecx, [ebp - 0x98]
call fcn.004a5950
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00421010
int3