Function at 0x100022c0
Capabilities:
Create directory
Get file size

Disassembly:
sub esp, 0x920
mov eax, dword [0x1001842c]
xor eax, esp
mov dword [esp + 0x91c], eax
push ebx
mov ebx, dword [esp + 0x928]
push esi
push edi
push ebx
lea eax, [esp + 0x15c]
push str.._records_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push str.._records
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x160]
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10002378
mov ecx, dword [0x10018820]
mov esi, dword [esp + 0x934]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x14]
push eax
push 0
mov dword [esp + 0x30], ebx
push 0x1007
mov ebx, 1
add dword [0x1001881c], ebx
push ecx
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x44], esi
call edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], str.Error
jmp 0x10002553
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x12c
jae 0x100023cb
mov esi, dword [esp + 0x934]
push esi
push ebx
mov ecx, 0x10018810
call fcn.10001c90
mov edx, dword [0x10018820]
lea ecx, [esp + 0x14]
push ecx
push esi
push 0x102e
push edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], str.File_too_short
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x10002566
lea eax, [esp + 0x158]
push 0x12c
mov ecx, eax
push ecx
push esi
mov dword [0x10018824], eax
call dword [sym.imp.KERNEL32.dll__lread]
mov eax, dword [0x10018824]
lea edx, [eax + 4]
add eax, edi
push esi
mov dword [0x10018828], edx
mov dword [0x1001882c], eax
call dword [sym.imp.KERNEL32.dll__lclose]
push 0x80
lea eax, [esp + 0xdc]
push eax
mov ecx, 0x10018824
call fcn.10001ea0
mov ecx, dword [0x10018824]
add ecx, 0x84
push 0x80
mov dword [0x10018828], ecx
push 0x1001a448
mov ecx, 0x10018824
call fcn.10001ea0
mov edx, dword [0x10018824]
add edx, 0x104
mov ecx, 0x10018824
mov dword [0x10018828], edx
call fcn.10001f60
mov ecx, 0x10018824
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
call fcn.10001f20
mov ecx, 0x10018824
mov dword [0x1001a43c], eax
call fcn.10001f20
mov esi, dword [esp + 0x934]
push esi
push 0x1001a448
mov ecx, 0x10018810
mov dword [0x1001a284], eax
call fcn.10001c90
mov edx, dword [0x10018820]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x14]
push ecx
push esi
push 0x102e
lea eax, [esp + 0xe4]
push edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], eax
call edi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll__localtime64]
add esp, 4
test eax, eax
jne 0x100024ef
push eax
push str.Failure_
push str.Failed_to_read_a_replay_file_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x10002566
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
add ecx, 0x76c
push ecx
mov ecx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
inc ecx
push ecx
push edx
push eax
lea ecx, [esp + 0x16c]
push str._02d:_02d_on__02d__02d__02d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x10018820]
add esp, 0x1c
lea eax, [esp + 0x14]
push eax
push esi
push 0x102e
lea edx, [esp + 0x164]
push ecx
mov dword [esp + 0x2c], 2
mov dword [esp + 0x38], edx
call edi
mov dword [esp + 0x1c], 3
mov dword [esp + 0x28], ebx
mov eax, dword [0x10018820]
lea edx, [esp + 0x14]
push edx
push esi
push 0x102e
push eax
call edi
mov ecx, dword [esp + 0x928]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10012622
add esp, 0x920
ret 8