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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6454ab
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
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 ebx, ecx
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4a7b77
xor ecx, ecx
cmp cx, word [eax]
je 0x4a7b77
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a7b9d
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4a7e76
xor ecx, ecx
cmp cx, word [eax]
je 0x4a7e76
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4a7e76
cmp dword [ebx + 0x48], 0
je 0x4a7e8a
cmp dword [ebx + 0x4c], 0
je 0x4a7e8a
push 1
lea ecx, [ebp - 0x104]
call fcn.004a5590
mov edi, dword [ebx + 0x4c]
mov dword [ebp - 4], 0
call fcn.004213d0
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4a7ea1
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x659730]
mov ecx, dword [ebp - 0x10]
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test edi, edi
je 0x4a7c24
test edi, 0xffff0000
jne 0x4a7c0e
movzx eax, di
lea ecx, [ebp - 0x14]
push eax
call fcn.0042b6d0
jmp 0x4a7c30
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7c13
sub ecx, edx
sar ecx, 1
jmp 0x4a7c26
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 - 0x104]
call fcn.004bece0
mov ecx, dword [ebp - 0x14]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4a7c6e
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
push 1
lea ecx, [ebp - 0x8c]
call fcn.004a5590
mov edi, dword [ebx + 0x48]
mov byte [ebp - 4], 3
call fcn.004213d0
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4a7eab
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x659730]
mov ecx, dword [ebp - 0x10]
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
test edi, edi
je 0x4a7ce1
test edi, 0xffff0000
jne 0x4a7cc8
movzx eax, di
lea ecx, [ebp - 0x14]
push eax
call fcn.0042b6d0
jmp 0x4a7ced
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7cd0
sub ecx, edx
sar ecx, 1
jmp 0x4a7ce3
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x14]
call fcn.0042b7e0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x8c]
call fcn.004bece0
mov ecx, dword [ebp - 0x14]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4a7d2b
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
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
push 1
push dword [0x6d112c]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004a6900
test al, al
je 0x4a7d5b
xor eax, eax
cmp dword [ebp - 0x10], eax
setne al
mov dword [ebx + 0x50], eax
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
push 0x40000
push dword [0x6d1120]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004a6900
test al, al
je 0x4a7d97
mov eax, dword [ebx]
push dword [ebp - 0x10]
mov esi, dword [eax + 0x34]
mov ecx, esi
call dword [0x659730]
mov ecx, ebx
call esi
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
push 3
push dword [0x6d1118]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004a6900
test al, al
je 0x4a7dd0
mov eax, dword [ebx]
push dword [ebp - 0x10]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x659730]
mov ecx, ebx
call esi
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
push 3
push dword [0x6d1124]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004a6900
test al, al
je 0x4a7dfb
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x40], eax
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
push 0x10
push dword [0x6d1128]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004a6900
test al, al
je 0x4a7e26
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x44], eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x8c], vtable.CoreTech::CObfuscatedIniReader.0
call fcn.004a58d0
lea ecx, [ebp - 0x78]
call fcn.004a5870
lea ecx, [ebp - 0x8c]
call fcn.004a5950
lea ecx, [ebp - 0xc0]
mov dword [ebp - method.CoreTech::CObfuscatedIniReader.virtual_0], vtable.CoreTech::CObfuscatedIniReader.0
call fcn.004a58d0
lea ecx, [ebp - 0xf0]
call fcn.004a5870
lea ecx, [ebp - 0x104]
call fcn.004a5950
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
mov eax, 0x57
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
push 0x80004005
call fcn.00421010
int3