Function at 0x403200
Capabilities:
Get common file path
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x411f37
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
mov ebx, ecx
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], ebx
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
ja 0x40325d
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
add esp, 0x230
ret
push ebp
push esi
lea ecx, [esp + 0x2c]
push str.UserRecordFile.txt
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 2
push 2
push 0
push 0
lea edx, [esp + 0x40]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4032f1
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [0x415040]
lea eax, [esp + 0x1c]
push 0
push eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x415044]
lea ecx, [ebp - 0xc]
cmp ecx, eax
je 0x4032f1
lea esi, [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4032f1
push esi
call fcn.00409660
add esp, 4
lea esi, [ebx + 8]
xor ebp, ebp
add ebx, 0x220
cmp esi, ebp
mov dword [esp + 0x20], 0
jne 0x40330c
xor eax, eax
jmp 0x403313
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
mov ecx, ebx
call fcn.00401ab0
mov edi, dword [esp + 0x24]
mov esi, dword [edi + 4]
cmp esi, ebp
jne 0x40332b
xor eax, eax
jmp 0x403332
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
mov ecx, ebx
call fcn.00401b70
mov eax, dword [ebx]
push 0x2e
push eax
call fcn.00409cf6
add esp, 8
cmp eax, ebp
je 0x4033ec
sub eax, dword [ebx]
cmp eax, ebp
jle 0x4033ec
lea edx, [esp + 0x18]
push eax
push edx
mov ecx, ebx
call fcn.00404910
mov esi, eax
mov ecx, dword [ebx]
mov eax, dword [esi]
cmp ecx, eax
mov dword [esp + 0x23c], ebp
je 0x4033b2
cmp dword [ecx - 0xc], ebp
jge 0x40338a
mov edx, dword [0x415044]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x40338f
cmp dword [eax - 0xc], ebp
jge 0x40339d
push eax
mov eax, dword [eax - 8]
push eax
mov ecx, ebx
call fcn.00401ab0
jmp 0x4033b2
mov ecx, ebx
call fcn.00401c70
mov esi, dword [esi]
mov dword [ebx], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x18]
mov edx, dword [0x415044]
mov dword [esp + 0x23c], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4033ec
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4033ec
mov edx, dword [esp + 0x18]
lea eax, [edx - 0xc]
push eax
call fcn.00409660
add esp, 4
mov eax, str..zip
test eax, eax
je 0x403400
push str..zip
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push str..zip
push eax
mov ecx, ebx
call fcn.00401b70
mov eax, dword [ebx]
push eax
call fcn.00401000
mov eax, dword [edi + 0x214]
add esp, 4
test eax, eax
jne 0x403428
mov dword [esp + 0x18], eax
jmp 0x403437
mov ecx, dword [edi + 0x218]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x1c], ecx
jle 0x40361b
jmp 0x40344f
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x214]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x403606
mov eax, dword [edi]
push 0
push eax
call fcn.0040966b
add esp, 8
test eax, eax
jne 0x403606
mov eax, dword [edi + 0x10]
test eax, eax
je 0x403606
test ebp, ebp
jne 0x40349c
mov eax, dword [ebx]
push 2
push ebp
push eax
call fcn.00409490
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x40361b
mov esi, dword [edi]
mov eax, dword [esi - 0xc]
test eax, eax
jl 0x4034b5
mov dword [esp + 0x10], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4034d9
mov ecx, dword [0x415040]
test esi, esi
mov dword [esp + 0x10], ecx
jne 0x4034c7
xor eax, eax
jmp 0x4034ce
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00401ab0
mov edx, dword [esp + 0x10]
push 0x5c
push edx
mov dword [esp + 0x244], 1
call fcn.00409cf6
add esp, 8
test eax, eax
je 0x4035af
mov edx, dword [esp + 0x10]
sub eax, edx
mov ecx, eax
test ecx, ecx
jle 0x4035af
mov eax, dword [edx - 8]
sub eax, ecx
lea ecx, [esp + 0x10]
dec eax
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00404a70
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
mov byte [esp + 0x23c], 2
je 0x403578
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x403548
mov edx, dword [0x415044]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x40354f
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x40355f
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00401ab0
jmp 0x403578
lea ecx, [esp + 0x10]
call fcn.00401c70
mov esi, dword [esi]
mov dword [esp + 0x10], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x28]
mov ecx, dword [0x415044]
mov byte [esp + 0x23c], 1
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4035af
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4035af
mov eax, dword [esp + 0x28]
add eax, 0xfffffff4
push eax
call fcn.00409660
add esp, 4
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
push 2
push 0
push eax
push ecx
push ebp
call fcn.00409520
add esp, 0x14
test eax, eax
jne 0x4035cc
inc dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x415044]
mov dword [esp + 0x23c], 0xffffffff
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x403606
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x403606
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00409660
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
inc ecx
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jl 0x40344b
mov ecx, dword [0x415040]
lea edx, [esp + 0x2c]
test edx, edx
mov dword [esp + 0x14], ecx
je 0x40367f
lea eax, [esp + 0x2c]
shr eax, 0x10
jne 0x40364b
xor eax, eax
lea ecx, [esp + 0x2c]
mov ax, cx
lea ecx, [esp + 0x14]
push eax
call fcn.004017f0
jmp 0x40367f
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x40367f
push esi
lea ecx, [esp + 0x18]
call fcn.00401a50
test eax, eax
je 0x40367f
mov ecx, dword [esp + 0x14]
push esi
lea eax, [esp + 0x30]
inc esi
push eax
push esi
push ecx
call fcn.004019f0
add esp, 0x10
mov ebx, 3
push 0x5c
lea ecx, [esp + 0x18]
mov dword [esp + 0x240], ebx
call fcn.00404bd0
test eax, eax
jle 0x4036d5
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 8]
sub ecx, eax
lea eax, [esp + 0x1c]
dec ecx
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00404a70
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 4
call fcn.00404650
lea ecx, [esp + 0x1c]
mov byte [esp + 0x23c], bl
call fcn.00401a20
mov edx, dword [esp + 0x14]
push 2
lea ecx, [esp + 0x30]
push 0
push ecx
push edx
push ebp
call fcn.00409520
add esp, 0x14
test ebp, ebp
je 0x4036f9
push ebp
call fcn.00409600
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x23c], 0xffffffff
call fcn.00401a20
mov ecx, dword [esp + 0x234]
mov eax, dword [esp + 0x20]
pop esi
pop ebp
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret