Function at 0x5f14a0
Capabilities:
Get common file path
Identify system language via api
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov eax, 0x4358
call fcn.0063fc60
xor edx, edx
mov eax, dword [0x6d159c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x432c]
mov ecx, dword [ebp + 0x1c]
push eax
push 1
push 0x1001
mov dword [eax - 4], edx
mov dword [ebp - 0x15], 0x5c3f5c5c
mov byte [ebp - 0x11], dl
mov dword [ecx], edx
call fcn.005c09a0
add esp, 0xc
test eax, eax
je 0x5f1508
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x6d159c]
jne 0x5f19e8
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
lea eax, [ebp - 0x4334]
push eax
push 1
push 0x1001
call fcn.005c09a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x5f1554
push dword [ebp - 0x432c]
call fcn.005c0a60
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x6d159c]
jne 0x5f19e8
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
lea eax, [ebp - 0x4338]
push eax
push 1
push 0x1001
call fcn.005c09a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x5f19b1
mov eax, dword [ebp + 0xc]
cmp dword [eax], 3
je 0x5f223b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x124]
cmp ecx, 0xfffffffc
je 0x5f2231
cmp ecx, 0xfffffffd
je 0x5f15b4
cmp ecx, 0xfffffffe
jne 0x5f15a3
mov edx, str.FOR_TYPE
jmp 0x5f15b9
cmp ecx, 0xffffffff
mov edx, str.FOR_PRINT
je 0x5f15b9
mov edx, 0
jmp 0x5f15b9
mov edx, str.FOR_ACCEPT
mov eax, dword [ebp + 8]
test byte [eax + 0x1a9], 4
je 0x5f15d5
mov eax, dword [ebp + 8]
test byte [eax + 0x1a0], 1
je 0x5f16b1
test edx, edx
je 0x5f16b1
push 0x1001
push dword [ebp - 0x4334]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [eax - 1]
cmp edx, 0xfff
ja 0x5f161a
mov ecx, dword [ebp - 0x4334]
xor edx, edx
mov dword [ebp - 0x433c], ecx
mov ebx, 1
mov dword [ebp - 0x4330], eax
xor esi, esi
jmp 0x5f1731
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x124]
add eax, 4
cmp eax, 0xa
ja 0x5f1639
movzx eax, byte [eax + 0x69a72c]
add eax, 0x5f1639
jmp eax
xor ecx, ecx
jmp 0x5f1683
mov dword [ebp - 0x433c], ecx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x5f16a0
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x5f168b
dec eax
xor edx, edx
xor esi, esi
mov dword [ebp - 0x4330], eax
xor ebx, ebx
jmp 0x5f1731
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
test eax, eax
je 0x5f2045
mov edx, dword [ebp + 0xc]
cmp byte [eax], 0x20
mov esi, dword [edx + 8]
jne 0x5f16d5
test esi, esi
jle 0x5f16eb
inc eax
dec esi
cmp byte [eax], 0x20
je 0x5f16ca
test esi, esi
jle 0x5f16eb
movsx ecx, byte [esi + eax - 1]
test ecx, 0xffffffdf
jne 0x5f16eb
dec esi
test esi, esi
jg 0x5f16d9
cmp esi, 0x1000
mov ecx, esi
jle 0x5f16fa
mov ecx, 0x1000
push ecx
push eax
push dword [ebp - 0x4338]
mov dword [ebp - 0x4330], ecx
call fcn.0062a530
add esp, 0xc
mov eax, dword [ebp - 0x4330]
mov ebx, 1
mov ecx, dword [ebp - 0x4338]
mov byte [eax + ecx], 0
mov ecx, dword [ebp - 0x4338]
mov dword [ebp - 0x433c], ecx
cmp byte [ecx], 0x20
jne 0x5f175c
test eax, eax
jle 0x5f1778
inc ecx
dec eax
cmp byte [ecx], 0x20
jne 0x5f1750
test eax, eax
jle 0x5f202e
inc ecx
dec eax
cmp byte [ecx], 0x20
je 0x5f1741
mov dword [ebp - 0x433c], ecx
mov dword [ebp - 0x4330], eax
test eax, eax
jle 0x5f1778
movsx edi, byte [eax + ecx - 1]
test edi, 0xffffffdf
jne 0x5f17a4
dec eax
mov dword [ebp - 0x4330], eax
test eax, eax
jg 0x5f1760
jne 0x5f17a4
mov eax, dword [ebp + 8]
test byte [eax + 0x1a9], 4
je 0x5f17a4
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x433c]
lea ecx, [ebp - 0x4330]
call fcn.005f22a0
mov edi, eax
test edi, edi
jne 0x5f196f
cmp dword [ebp + 0x18], 0
jne 0x5f17d6
push 4
mov edi, dword [ebp - 0x433c]
lea eax, [ebp - 0x15]
push eax
push edi
call fcn.0064cbc0
add esp, 0xc
test eax, eax
jne 0x5f17ce
mov eax, dword [ebp + 0x1c]
mov dword [eax], 1
jmp 0x5f17d6
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0
je 0x5f182f
cmp esi, 0x1000
jg 0x5f17e6
mov edi, dword [ebp - 0x433c]
jmp 0x5f182f
push dword [ebp - 0x4334]
call fcn.005c0a60
push dword [ebp - 0x432c]
call fcn.005c0a60
push dword [ebp - 0x4338]
call fcn.005c0a60
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x6d159c]
jne 0x5f19e8
mov eax, 0x311
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
test ebx, ebx
jne 0x5f183a
xor ecx, ecx
jmp 0x5f18d9
mov eax, dword [ebp - 0x4330]
push edi
push dword [ebp + 8]
mov byte [edi + eax], 0
call fcn.005c69e0
add esp, 8
cmp eax, 0xffffffff
je 0x5f1a07
cmp eax, 1
je 0x5f186c
cmp eax, 0xfffffffa
jne 0x5f1889
cmp dword [0x7253f4], 0
jne 0x5f1889
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 8]
xor ecx, ecx
mov edi, dword [ebp - 0x433c]
xor ebx, ebx
mov dword [esi + 0x104], eax
jmp 0x5f18d9
test eax, eax
jne 0x5f18aa
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 8]
xor ecx, ecx
mov edi, dword [ebp - 0x433c]
xor ebx, ebx
mov dword [esi + 0x104], eax
jmp 0x5f18d9
cmp eax, 2
jne 0x5f18cc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 8]
xor ecx, ecx
mov edi, dword [ebp - 0x433c]
xor ebx, ebx
mov dword [esi + 0x104], eax
jmp 0x5f18d9
mov edi, dword [ebp - 0x433c]
xor ebx, ebx
mov ecx, 1
mov esi, dword [ebp + 0x10]
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x5f18dc
cmp dword [0x7253f4], 0
je 0x5f1905
test ebx, ebx
jne 0x5f1915
mov eax, dword [ebp + 8]
cmp dword [eax + 0x104], 0xffffffff
je 0x5f19ed
jmp 0x5f1915
test ebx, ebx
jne 0x5f1915
mov eax, dword [ebp + 8]
cmp dword [eax + 0x104], 0xffffffff
je 0x5f1920
test ecx, ecx
jne 0x5f1920
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
jmp 0x5f1929
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
push dword [ebp - 0x4334]
call fcn.005c0a60
push dword [ebp - 0x432c]
call fcn.005c0a60
push dword [ebp - 0x4338]
call fcn.005c0a60
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x6d159c]
jne 0x5f19e8
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push dword [ebp - 0x4334]
call fcn.005c0a60
push dword [ebp - 0x432c]
call fcn.005c0a60
push dword [ebp - 0x4338]
call fcn.005c0a60
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x6d159c]
jne 0x5f19e8
mov eax, edi
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push dword [ebp - 0x432c]
call fcn.005c0a60
push dword [ebp - 0x4334]
call fcn.005c0a60
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x6d159c]
jne 0x5f19e8
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call fcn.0063f93a
test ecx, ecx
jne 0x5f1920
mov eax, dword [ebp + 8]
mov dword [eax + 0x104], 0
jmp 0x5f1919
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0
jne 0x5f2021
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test byte [eax + 0x1a9], 8
mov edi, dword [edi + 0xc]
jne 0x5f1a2f
test edi, edi
je 0x5f1ccc
jmp 0x5f1a37
test edi, edi
je 0x5f2009
mov eax, dword [ebp + 0xc]
cmp byte [edi], 0x20
mov esi, dword [eax + 0x10]
jne 0x5f1a4d
test esi, esi
jle 0x5f1a66
inc edi
dec esi
cmp byte [edi], 0x20
je 0x5f1a42
test esi, esi
jle 0x5f1a66
movsx eax, byte [esi + edi - 1]
test eax, 0xffffffdf
jne 0x5f1ffa
dec esi
test esi, esi
jg 0x5f1a51
cmp dword [ebp + 0x18], 0
jne 0x5f1b32
push 4
lea eax, [ebp - 0x15]
push eax
push edi
call fcn.0064cbc0
add esp, 0xc
test eax, eax
jne 0x5f1ae1
mov eax, dword [ebp + 0x1c]
mov dword [eax], 1
cmp esi, 0x1000
jl 0x5f1b32
push dword [ebp - 0x4334]
call fcn.005c0a60
push dword [ebp - 0x432c]
call fcn.005c0a60
push dword [ebp - 0x4338]
call fcn.005c0a60
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x6d159c]
jne 0x5f19e8
mov eax, 0x311
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp esi, 0x104
jl 0x5f1b32
push dword [ebp - 0x4334]
call fcn.005c0a60
push dword [ebp - 0x432c]
call fcn.005c0a60
push dword [ebp - 0x4338]
call fcn.005c0a60
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x6d159c]
jne 0x5f19e8
mov eax, 0x302
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
push edi
push dword [ebp - 0x432c]
call fcn.0062a530
add esp, 0xc
mov eax, dword [ebp - 0x432c]
mov byte [esi + eax], 0
mov edx, dword [ebp - 0x432c]
test edx, edx
je 0x5f1fe9
cmp byte [edx], 0x20
jne 0x5f1b6a
test esi, esi
jle 0x5f1b7f
inc edx
dec esi
cmp byte [edx], 0x20
je 0x5f1b5f
test esi, esi
jle 0x5f1b7f
movsx eax, byte [esi + edx - 1]
test eax, 0xffffffdf
jne 0x5f1b7f
dec esi
test esi, esi
jg 0x5f1b6e
mov eax, dword [ebp + 0xc]
cmp dword [eax], 3
je 0x5f1e7c
test edx, edx
je 0x5f1bae
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0
je 0x5f1b9f
cmp byte [edx + esi], 0x5c
je 0x5f1bb9
jmp 0x5f1bae
movsx eax, byte [edx + esi - 1]
cmp eax, 0x2f
je 0x5f1bb9
cmp eax, 0x5c
je 0x5f1bb9
test esi, esi
jle 0x5f1bb9
mov edi, 1
jmp 0x5f1bbd
xor eax, eax
xor edi, edi
cmp dword [ebp + 0x18], 0
jne 0x5f1bcb
mov ecx, dword [ebp + 0x1c]
cmp dword [ecx], 0
je 0x5f1c2a
mov ecx, esi
add ecx, dword [ebp - 0x4330]
add ecx, edi
cmp ecx, 0x1000
jle 0x5f1c85
push dword [ebp - 0x4334]
call fcn.005c0a60
push dword [ebp - 0x432c]
call fcn.005c0a60
push dword [ebp - 0x4338]
call fcn.005c0a60
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x6d159c]
jne 0x5f19e8
mov eax, 0x311
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov ecx, esi
add ecx, dword [ebp - 0x4330]
add ecx, edi
cmp ecx, 0x104
jle 0x5f1c85
push dword [ebp - 0x4334]
call fcn.005c0a60
push dword [ebp - 0x432c]
call fcn.005c0a60
push dword [ebp - 0x4338]
call fcn.005c0a60
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x6d159c]
jne 0x5f19e8
mov eax, 0x302
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
push edx
mov edx, dword [ebp + 0x10]
push edx
call fcn.0062a530
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, esi
test edi, edi
je 0x5f1c9f
mov byte [edx], 0x5c
push dword [ebp - 0x4330]
push dword [ebp - 0x433c]
add edx, edi
push edx
call fcn.0062a530
add esp, 0xc
mov ecx, dword [ebp - 0x4330]
add esi, edi
mov edx, dword [ebp + 0x10]
add ecx, edx
mov byte [esi + ecx], 0
jmp 0x5f1919
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
cmp eax, 0x411
jne 0x5f1dd0
push 0x1001
lea edi, [ebp - 0x4328]
push edi
push 0xffffffffffffffff
push dword [ebp - 0x433c]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
lea esi, [ebp - 0x2326]
push esi
push 0x1001
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0x434c], eax
cmp dword [ebp - 0x434c], 0x2002
jae 0x5f1dab
cmp dword [ebp - 0x434c], 0
je 0x5f1e45
cmp dword [ebp - 0x434c], 0x1001
jae 0x5f1e45
xor eax, eax
push eax
push eax
push 0x1000
push dword [ebp - 0x432c]
push 0xffffffffffffffff
push esi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x4330]
neg ecx
add ecx, dword [ebp - 0x434c]
dec ecx
test ecx, ecx
jle 0x5f1e45
mov edx, dword [ebp - 0x432c]
xor eax, eax
movzx esi, byte [eax + edx]
test esi, 0x80
jne 0x5f1e45
inc eax
cmp eax, ecx
jl 0x5f1d7f
mov eax, dword [ebp - 0x434c]
mov dword [ebp - 0x433c], edx
mov dword [ebp - 0x4330], eax
jmp 0x5f1e45
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x6d159c]
jne 0x5f19e8
mov eax, 0x311
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
cmp eax, 0x411
je 0x5f1ce0
push 0
push dword [ebp - 0x432c]
push 0x1001
push dword [ebp - 0x433c]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov dword [ebp - 0x434c], eax
cmp dword [ebp - 0x434c], 0x1000
ja 0x5f1e57
cmp dword [ebp - 0x434c], 0
je 0x5f1e45
push dword [ebp - 0x434c]
push 0x3f
mov esi, dword [ebp - 0x432c]
push esi
call fcn.00643270
add esp, 0xc
test eax, eax
jne 0x5f1e45
mov eax, dword [ebp - 0x434c]
mov dword [ebp - 0x433c], esi
mov dword [ebp - 0x4330], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
xor esi, esi
cmp dword [eax], 3
jne 0x5f1bb9
jmp 0x5f1e7c
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x6d159c]
jne 0x5f19e8
mov eax, 0x311
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
test byte [eax + 0x1a1], 0x20
jne 0x5f1b8b
push 0x105
mov dword [ebp - 0x434c], edx
lea esi, [ebp - 0x11a]
push esi
push str.FORT_TMPDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edx, dword [ebp - 0x434c]
mov ecx, eax
test ecx, ecx
ja 0x5f1fd7
mov byte [ebp - 0x11a], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xc], 0
je 0x5f1f6f
push 0x105
push 0
mov dword [ebp - 0x434c], edx
lea edi, [ebp - 0x21f]
push edi
call fcn.0062a5e0
mov edx, dword [ebp - 0x434c]
add esp, 0xc
push edi
push 0
push 0x69a91c
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x5f1f26
mov eax, dword [ebp + 8]
test byte [eax + 0x1a9], 8
je 0x5f1f14
lea edi, [ebp - 0x21d]
mov esi, dword [ebp + 0x10]
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x5f1f17
jmp 0x5f1919
push dword [ebp - 0x4334]
call fcn.005c0a60
push dword [ebp - 0x432c]
call fcn.005c0a60
push dword [ebp - 0x4338]
call fcn.005c0a60
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x6d159c]
jne 0x5f19e8
mov eax, 0x2b
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
test byte [eax + 0x1a9], 8
je 0x5f1f91
mov byte [ebp - 0x324], 0x2e
lea edx, [ebp - 0x324]
mov byte [edx + 1], 0
jmp 0x5f1ecd
test ecx, ecx
je 0x5f1fb1
push 0x104
push esi
lea esi, [ebp - 0x324]
push esi
call fcn.005b0000
add esp, 0xc
mov edx, esi
jmp 0x5f1ecd
lea esi, [ebp - 0x324]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
mov edx, esi
jne 0x5f1ecd
mov edx, 0
jmp 0x5f1ecd
cmp ecx, 0x105
jae 0x5f1eb9
inc ecx
jmp 0x5f1ec0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 3
jne 0x5f1bae
jmp 0x5f1e7c
cmp dword [ebp + 0x18], 0
je 0x5f1a70
jmp 0x5f1a8c
mov eax, dword [ebp + 0xc]
cmp dword [eax], 3
jne 0x5f2021
mov eax, dword [ebp + 8]
test byte [eax + 0x1a1], 0x20
je 0x5f1ccc
mov edi, dword [ebp - 0x433c]
xor ecx, ecx
jmp 0x5f18d9
mov dword [ebp - 0x433c], ecx
mov dword [ebp - 0x4330], eax
je 0x5f177a
jmp 0x5f17a4
mov dword [ebp - 0x4348], str.FORT_d
mov dword [ebp - 0x4344], ecx
call fcn.0062fd20
mov edx, eax
lea eax, [ebp - 0x4344]
push eax
push 0
push str.FORT_d
push 0xffffffffffffffff
push dword [ebp - 0x4338]
push dword [edx + 4]
mov ecx, dword [edx]
or ecx, 1
push ecx
call fcn.0064c89e
add esp, 0x1c
push 0x1001
mov ebx, dword [ebp - 0x4334]
push ebx
push dword [ebp - 0x4338]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
ja 0x5f2220
test ebx, ebx
je 0x5f20aa
mov byte [ebx], 0
test eax, eax
je 0x5f20cf
mov ecx, dword [ebp - 0x4334]
xor edx, edx
dec eax
mov ebx, 1
mov dword [ebp - 0x433c], ecx
xor esi, esi
mov dword [ebp - 0x4330], eax
jmp 0x5f1731
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x124]
add eax, 4
cmp eax, 0xa
ja 0x5f20ee
movzx eax, byte [eax + 0x69a738]
add eax, 0x5f20ee
jmp eax
xor ecx, ecx
mov eax, dword [ebp + 8]
test byte [eax + 0x1a9], 4
jne 0x5f2188
mov eax, dword [ebp + 8]
test byte [eax + 0x1a1], 0x20
je 0x5f212b
mov ecx, dword [ebp + 8]
mov ebx, 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x78]
mov dword [ebp - 0x433c], ecx
mov dword [eax], 0
jmp 0x5f21fa
mov eax, dword [ebp + 8]
mov ebx, str.fort._d
mov dword [ebp - 0x433c], ecx
mov dword [ebp - 0x4358], ebx
mov edx, dword [eax + 0x124]
mov dword [ebp - 0x4354], edx
call fcn.0062fd20
mov edx, eax
lea eax, [ebp - 0x4354]
push eax
push 0
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x4338]
push dword [edx + 4]
mov ecx, dword [edx]
or ecx, 1
push ecx
call fcn.0064c89e
add esp, 0x1c
mov ecx, dword [ebp - 0x4338]
mov ebx, 1
mov dword [ebp - 0x433c], ecx
jmp 0x5f21fa
mov eax, dword [ebp - 0x4338]
mov ebx, 1
mov byte [eax], 0
mov ecx, dword [ebp - 0x4338]
mov dword [ebp - 0x433c], ecx
jmp 0x5f21fa
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x5f2211
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x5f21fc
dec eax
xor edx, edx
mov dword [ebp - 0x4330], eax
xor esi, esi
jmp 0x5f1731
cmp eax, 0x1001
jae 0x5f20a3
inc eax
jmp 0x5f20aa
mov edx, str.FOR_READ
jmp 0x5f15b9
mov eax, dword [ebp + 8]
test byte [eax + 0x1a1], 0x20
jne 0x5f1580
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x5f2263
push 0
push 0x212
call fcn.005b16e0
add esp, 8
push 0x1000
push str.SCRATCH
push dword [ebp - 0x4338]
call fcn.005b0000
add esp, 0xc
mov edi, dword [ebp - 0x4338]
mov eax, 7
mov dword [ebp - 0x433c], edi
mov ebx, 1
mov dword [ebp - 0x4330], 7
jmp 0x5f1840