Function at 0x4a7210
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x530
mov edx, dword [ebp + 8]
mov eax, dword [0x4e6418]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x4ee85c], 0
je 0x4a72d2
mov eax, dword [ebp + 0xc]
test edx, edx
je 0x4a7245
mov ecx, dword [0x4ee85c]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
test eax, eax
je 0x4a7254
mov edx, dword [0x4ee860]
mov dword [eax], edx
mov edx, dword [ebp + 0x14]
test ecx, ecx
je 0x4a7262
mov eax, dword [0x4ee864]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
test edx, edx
je 0x4a7271
mov ecx, dword [0x4ee868]
mov dword [edx], ecx
mov esi, dword [ebp + 0x20]
test eax, eax
je 0x4a7290
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x4a7290
push 0xffffffffffffffff
push 0x4ee86c
push ecx
push eax
call fcn.0047bc03
add esp, 0x10
mov eax, dword [ebp + 0x24]
test esi, esi
je 0x4a72a1
movzx ecx, word [0x4eea74]
mov word [esi], cx
mov ecx, dword [ebp + 0x28]
test eax, eax
je 0x4a72b2
movzx edx, word [0x4eea76]
mov word [eax], dx
test ecx, ecx
je 0x4a72bd
mov al, byte [0x4eea78]
mov byte [ecx], al
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045901d
add esp, 0x530
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 0x208
xor eax, eax
lea ebx, [ebp - 0x218]
push edi
push eax
push ebx
call fcn.00460af0
add esp, 0xc
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea esi, [ebp - 0x420]
push edi
xor eax, eax
push eax
push esi
call fcn.00460af0
add esp, 0xc
push 0xffffffffffffffff
push str.ntdll.dll
push ebx
push 0x4d2dd8
push 0x103
push esi
call fcn.00419f70
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4a7458
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a73b5
mov esi, eax
lea edi, [ebp - 0x538]
push 0x110
push 0
push edi
call fcn.00460af0
add esp, 0xc
mov dword [edi - 4], 0x114
mov ecx, esi
call dword [0x4e097c]
lea edi, [ebp - 0x53c]
push edi
call esi
mov eax, dword [edi + 4]
test eax, eax
je 0x4a73b5
mov dword [0x4ee85c], eax
lea eax, [ebp - 0x528]
mov ecx, dword [eax - 0xc]
mov edx, dword [eax - 8]
mov dword [0x4ee860], ecx
mov dword [0x4ee864], edx
mov ecx, dword [eax - 4]
mov dword [0x4ee868], ecx
push 0xffffffffffffffff
push eax
push 0x104
push 0x4ee86c
call fcn.0047bc03
add esp, 0x10
lea esi, [ebp - 0x538]
push 0x118
push 0
push esi
call fcn.00460af0
add esp, 0xc
mov dword [esi - 4], 0x11c
lea eax, [ebp - 0x53c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov edx, dword [ebp + 8]
je 0x4a7236
cmp dword [0x4ee85c], 0
jne 0x4a7420
mov eax, dword [ebp - 0x538]
mov ecx, dword [ebp - 0x534]
mov dword [0x4ee85c], eax
mov dword [0x4ee860], ecx
mov eax, dword [ebp - 0x530]
mov dword [0x4ee864], eax
mov eax, dword [ebp - 0x52c]
mov dword [0x4ee868], eax
cmp byte [0x4eea78], 0
jne 0x4a7236
movzx eax, word [ebp - 0x428]
movzx ecx, word [ebp - 0x426]
mov word [0x4eea76], cx
mov word [0x4eea74], ax
mov al, byte [ebp - 0x422]
mov byte [0x4eea78], al
jmp 0x4a7236
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a73b5
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x4a7333
jmp 0x4a73b5