Function at 0x40ad50
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4769d6
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x491300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Initializing_logger
push 0x4929d8
call fcn.00403cf0
push eax
call fcn.004043d0
xor ebx, ebx
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
push str.AG_LOGS
mov dword [ebp - 4], ebx
call fcn.0045ffca
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x40ae0a
cmp byte [esi], bl
je 0x40ae0a
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40adc8
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.00401b50
push esi
push str.AG_LOGS_
push 0x4929d8
call fcn.00403cf0
add esp, 8
push eax
call fcn.00403cf0
push eax
call fcn.004043d0
add esp, 0xc
mov edi, 0x10
jmp 0x40af57
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x218], ax
call fcn.0045ef40
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp - 0x288], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x274], 7
mov dword [ebp - 0x278], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ae60
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x288]
call fcn.00403c00
mov eax, dword [ebp - 0x274]
mov ebx, dword [ebp - 0x288]
mov byte [ebp - 4], 1
mov ecx, ebx
cmp eax, 8
jae 0x40ae9f
lea ecx, [ebp - 0x288]
mov edx, dword [ebp - 0x278]
lea esi, [ecx + edx*2]
cmp eax, 8
jae 0x40aeb3
lea ebx, [ebp - 0x288]
mov edx, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x234]
mov eax, ecx
cmp edx, 0x10
jae 0x40aecc
lea eax, [ebp - 0x234]
add eax, dword [ebp - 0x224]
mov edi, 0x10
cmp edx, edi
jae 0x40aee1
lea ecx, [ebp - 0x234]
mov edx, dword [ebp - 0x2a8]
push edx
push esi
push ebx
push eax
push ecx
lea ecx, [ebp - 0x234]
call fcn.004044f0
lea eax, [ebp - 0x218]
push eax
push str.pwd_
push 0x4929d8
call fcn.00403cf0
add esp, 8
mov ecx, eax
call fcn.00408a70
push eax
call fcn.004043d0
add esp, 4
cmp dword [ebp - 0x274], 8
mov byte [ebp - 4], 0
jb 0x40af3c
mov ecx, dword [ebp - 0x288]
push ecx
call fcn.0045e38a
add esp, 4
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x274], 7
mov dword [ebp - 0x278], ebx
mov word [ebp - 0x288], dx
push 1
push 0x47cbb8
lea ecx, [ebp - 0x234]
call fcn.004042b0
push 0x14
push str.NVIDIA.SteamLauncher
lea ecx, [ebp - 0x234]
call fcn.004042b0
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jae 0x40af8f
lea eax, [ebp - 0x234]
push eax
push str.Attempting_to_create_log_directory_
push 0x4929d8
call fcn.00403cf0
add esp, 8
push eax
call fcn.00403cf0
push eax
call fcn.004043d0
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x234]
add esp, 0xc
mov eax, edx
cmp ecx, edi
jae 0x40afc9
lea eax, [ebp - 0x234]
add eax, dword [ebp - 0x224]
cmp ecx, edi
mov ecx, edx
jae 0x40afdb
lea ecx, [ebp - 0x234]
xor edx, edx
mov word [ebp - 0x26c], dx
mov edx, dword [ebp - 0x2a8]
push edx
push eax
push ecx
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], ebx
call fcn.0040b720
cmp dword [ebp - 0x258], 8
mov eax, dword [ebp - 0x26c]
mov byte [ebp - 4], 2
jae 0x40b021
lea eax, [ebp - 0x26c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 8
push str.Log.txt
lea ecx, [ebp - 0x234]
call fcn.004042b0
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jae 0x40b04f
lea eax, [ebp - 0x234]
push eax
push str.Log_filepath_
push 0x4929d8
call fcn.00403cf0
add esp, 8
push eax
call fcn.00403cf0
push eax
call fcn.004043d0
push 0x38
call fcn.0045eebb
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x2a8], esi
cmp esi, ebx
je 0x40b0ac
mov dword [esi], 3
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov dword [ebp - 0x2ac], esi
mov byte [esi + 4], 0
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 4
call fcn.0040b3f0
jmp 0x40b0ae
xor esi, esi
mov eax, dword [ebp - 0x234]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x220], edi
jae 0x40b0c6
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x2a4]
push eax
mov ecx, esi
call fcn.0040a7d0
cmp dword [ebp - 0x290], edi
jb 0x40b0ec
mov ecx, dword [ebp - 0x2a4]
push ecx
call fcn.0045e38a
add esp, 4
mov eax, 0xf
push 4
push str.Info
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x294], ebx
mov byte [ebp - 0x2a4], 0
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x250], 0
call fcn.00401b50
mov ecx, dword [0x4926e0]
lea edx, [ebp - 0x250]
push edx
push str.LogLevel
push str.NVIDIA.SteamLauncher
mov byte [ebp - 4], 5
mov ebx, 2
call fcn.00404900
cmp al, 1
jne 0x40b173
mov eax, dword [ebp - 0x250]
cmp dword [ebp - 0x23c], edi
jae 0x40b166
lea eax, [ebp - 0x250]
push 2
push eax
call fcn.00406c90
add esp, 8
mov ebx, eax
lea ecx, [esi + 0x20]
call fcn.0040b410
mov eax, dword [esi]
lea ecx, [esi + 0x20]
mov dword [esi], ebx
call fcn.0040b420
mov edi, dword [0x4926e4]
mov eax, esi
mov dword [0x4926e4], eax
test edi, edi
je 0x40b284
mov dword [ebp - 0x2ac], edi
lea ecx, [edi + 0x20]
mov byte [ebp - 4], 6
call fcn.0040b400
cmp dword [edi + 0x18], 0x10
mov byte [ebp - 4], 5
jb 0x40b1c4
mov ecx, dword [edi + 4]
push ecx
call fcn.0045e38a
add esp, 4
mov ebx, 0xf
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], 0
push edi
mov byte [edi + 4], 0
call fcn.0045e38a
mov eax, dword [0x4926e4]
add esp, 4
cmp esi, eax
je 0x40b289
mov edi, 0x10
cmp dword [ebp - 0x23c], edi
jb 0x40b209
mov eax, dword [ebp - 0x250]
push eax
call fcn.0045e38a
add esp, 4
xor esi, esi
cmp dword [ebp - 0x258], 8
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x240], esi
mov byte [ebp - 0x250], 0
jb 0x40b236
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.0045e38a
add esp, 4
xor edx, edx
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], esi
mov word [ebp - 0x26c], dx
cmp dword [ebp - 0x220], edi
jb 0x40b266
mov eax, dword [ebp - 0x234]
push eax
call fcn.0045e38a
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045ea71
mov esp, ebp
pop ebp
ret
mov ebx, 0xf
mov ecx, dword [ebp - 0x234]
mov edi, 0x10
cmp dword [ebp - 0x220], edi
jae 0x40b2a2
lea ecx, [ebp - 0x234]
push ecx
push str.Logger_successfully_initialized_at__s
push 2
push eax
call fcn.0040aad0
add esp, 0x10
cmp dword [ebp - 0x23c], edi
jb 0x40b2ca
mov edx, dword [ebp - 0x250]
push edx
call fcn.0045e38a
add esp, 4
xor esi, esi
cmp dword [ebp - 0x258], 8
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x240], esi
mov byte [ebp - 0x250], 0
jb 0x40b2f7
mov eax, dword [ebp - 0x26c]
push eax
call fcn.0045e38a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], esi
mov word [ebp - 0x26c], cx
cmp dword [ebp - 0x220], edi
jb 0x40b327
mov edx, dword [ebp - 0x234]
push edx
call fcn.0045e38a
add esp, 4
mov al, 1
jmp 0x40b268