Function at 0x415820
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b02f1
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4e42e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x60], edi
xor esi, esi
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x5c], esi
call fcn.00415fa0
add esp, 4
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41595c
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push esi
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41595c
push 0x9c40
mov ecx, 0x4e9734
call fcn.00424910
test al, al
je 0x41595c
call fcn.00425480
mov esi, eax
push str.Failed_to_create_the_directory:
push esi
call fcn.0040b300
cmp dword [ebp - 0x2c], 0x10
mov ecx, eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push ecx
call fcn.0040b8d0
add esp, 0x14
lea eax, [ebp - 0x28]
lea ecx, [esi + 4]
push eax
call fcn.00412740
mov esi, 2
mov dword [ebp - 0x5c], esi
push str.class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char______thiscall_System::UtilsImpl::getEmulatorId_void_
push 0xc1
push str......._src_systemutils_impl.cpp
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
push 0x9c40
push 0x4e9734
call fcn.004254b0
mov edx, dword [ebp - 0x14]
add esp, 0x18
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x41595c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x415952
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415d00
push edx
push ecx
call fcn.0047242a
add esp, 8
push str.hwid.dat
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040b6d0
add esp, 0xc
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [ebp - 4], 3
mov byte [edi], 0
or esi, 1
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x5c], esi
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x415b07
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004166c0
mov esi, eax
add esp, 8
cmp edi, esi
je 0x415a21
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x4159ef
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x4159e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415d05
mov eax, edx
push ecx
push eax
call fcn.0047242a
add esp, 8
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x415a55
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x415a4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415d05
push edx
push ecx
call fcn.0047242a
add esp, 8
cmp dword [edi + 0x10], 0
jne 0x415c6b
push 0x7530
mov ecx, 0x4e9734
call fcn.00424910
test al, al
je 0x415b07
call fcn.00425480
mov esi, eax
push str.Did_not_get_emulatorId_after_reading
push esi
call fcn.0040b300
push str.hwid.dat
push eax
call fcn.0040b300
add esp, 0x10
lea eax, [ebp - 0x28]
lea ecx, [esi + 4]
push eax
call fcn.00412740
or dword [ebp - 0x5c], 8
push str.class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char______thiscall_System::UtilsImpl::getEmulatorId_void_
push 0xce
push str......._src_systemutils_impl.cpp
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
push 0x7530
push 0x4e9734
call fcn.004254b0
mov edx, dword [ebp - 0x14]
add esp, 0x18
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x415b07
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x415afd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415d0a
push edx
push ecx
call fcn.0047242a
add esp, 8
cmp dword [edi + 0x10], 0
jne 0x415c6b
lea eax, [ebp - 0x28]
push eax
call fcn.004153d0
mov esi, eax
add esp, 4
cmp edi, esi
je 0x415b88
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x415b56
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x415b4c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415d0f
mov eax, edx
push ecx
push eax
call fcn.0047242a
add esp, 8
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x415bbc
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x415bb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415d0f
push edx
push ecx
call fcn.0047242a
add esp, 8
cmp dword [edi + 0x10], 0
jne 0x415c5e
push 0x9c40
mov ecx, 0x4e9734
call fcn.00424910
test al, al
je 0x415c6b
call fcn.00425480
mov esi, eax
push str.Generate_empty_emulatorId
push esi
call fcn.0040b300
add esp, 8
lea eax, [ebp - 0x28]
lea ecx, [esi + 4]
push eax
call fcn.00412740
or dword [ebp - 0x5c], 0x10
push str.class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char______thiscall_System::UtilsImpl::getEmulatorId_void_
push 0xd8
push str......._src_systemutils_impl.cpp
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
push 0x9c40
push 0x4e9734
call fcn.004254b0
mov edx, dword [ebp - 0x14]
add esp, 0x18
cmp edx, 0x10
jb 0x415c6b
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x415c55
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415d14
push edx
push ecx
call fcn.0047242a
jmp 0x415c68
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.00417a00
add esp, 8
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x415c9f
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x415c95
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415d19
push edx
push ecx
call fcn.0047242a
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp edx, 0x10
jb 0x415ce1
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x415cd7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415d19
push edx
push ecx
call fcn.0047242a
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472897
mov esp, ebp
pop ebp
ret 4
call fcn.0048d2da
call fcn.0048d2da
call fcn.0048d2da
call fcn.0048d2da
call fcn.0048d2da
call fcn.0048d2da
int3