Function at 0x434220
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, dword [0x668b80]
sub esp, 0x104
test eax, eax
push ebx
push esi
push edi
je 0x4344a6
lea eax, [esp + 0x90]
push eax
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x10]
push 0x495abc
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.MSVCRT.dll_strncat]
push 0x12
lea edx, [esp + 0x1c]
push str.Hawkchen1_record_
push edx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
add esp, 0x14
lea eax, [esp + 0x10]
push eax
call ebx
call dword [sym.imp.MSVCRT.dll__tzset]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_time]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_localtime]
push eax
push str._m_d_y_H_M
lea eax, [esp + 0x20]
push 0x80
push eax
call dword [sym.imp.MSVCRT.dll_strftime]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x6668d8
call esi
push 4
push str..txt
push 0x6668d8
call esi
push 0x495a90
push 0x6668d8
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x38
test esi, esi
jne 0x43431b
push str.Cant_open_file
push 0xff
push 0xa
push 0xa
call fcn.00441df0
add esp, 0x10
lea edx, [esp + 0x90]
push edx
call ebx
pop edi
pop esi
pop ebx
add esp, 0x104
ret
mov eax, dword [0x652130]
push str.1.0.0
cmp dword [eax + 0x2c], 1
jne 0x434332
push str._t_t_t_t
jmp 0x434337
push 0x495a38
mov edi, dword [sym.imp.MSVCRT.dll_fprintf]
push esi
call edi
mov eax, dword [0x652130]
add esp, 0xc
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x38]
push ebp
push ecx
mov ecx, dword [eax + 0x34]
push edx
mov edx, dword [eax + 0x30]
push ecx
push edx
push str._____
push esi
call edi
mov eax, dword [0x668b80]
inc eax
push eax
push 0x4959dc
push esi
call edi
push 0x4959c8
push esi
call edi
add esp, 0x2c
xor ebp, ebp
mov ebx, 0x668b78
xor ecx, ecx
mov cx, word [ebx]
push ecx
push ebp
push str.__d___d_t
push esi
call edi
add esp, 0x10
add ebx, 2
inc ebp
cmp ebx, 0x668b80
jl 0x434382
push 0x4957a4
push esi
call edi
push str._Assign_Level
push esi
call edi
add esp, 0x10
xor ebp, ebp
mov ebx, 0x6689e4
xor edx, edx
mov dx, word [ebx]
push edx
push ebp
push str.__d___d_t
push esi
call edi
add esp, 0x10
add ebx, 2
inc ebp
cmp ebx, 0x6689e8
jl 0x4343ba
push 0x4957a4
push esi
call edi
push 0x495994
push esi
call edi
add esp, 0x10
xor ebp, ebp
mov ebx, 0x65343c
mov eax, dword [ebx]
push eax
push ebp
push str.__d___d_t
push esi
call edi
add esp, 0x10
add ebx, 0x7d0
inc ebp
cmp ebx, 0x65537c
jl 0x4343f2
push 0x495990
push esi
call edi
push str._Assign
push esi
call edi
push 0x66680c
push esi
call fcn.00433da0
push str._n_n_Assign
push esi
call edi
push 0x666744
push esi
call fcn.00433da0
push 0x49595c
push esi
call edi
push 0x6669dc
push esi
call fcn.00433da0
push 0x49594c
push esi
call edi
add esp, 0x40
push 0x6689e8
push esi
call fcn.00433da0
push esi
call fcn.00433e80
push esi
call fcn.004341b0
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
test eax, eax
pop ebp
je 0x434498
push str.Cant_close_file
push 0xff
push 0xa
push 0xa
call fcn.00441df0
add esp, 0x10
lea ecx, [esp + 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x104
ret