Function at 0x48ba80
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.004cf930
xor edx, edx
mov eax, dword [0x543b10]
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.004875a0
add esp, 0xc
test eax, eax
je 0x48bae8
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x48bfc8
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.004875a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x48bb34
push dword [ebp - 0x432c]
call fcn.00487660
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x48bfc8
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.004875a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x48bf91
mov eax, dword [ebp + 0xc]
cmp dword [eax], 3
je 0x48c81b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x124]
cmp ecx, 0xfffffffc
je 0x48c811
cmp ecx, 0xfffffffd
je 0x48bb94
cmp ecx, 0xfffffffe
jne 0x48bb83
mov edx, str.FOR_TYPE
jmp 0x48bb99
cmp ecx, 0xffffffff
mov edx, str.FOR_PRINT
je 0x48bb99
mov edx, 0
jmp 0x48bb99
mov edx, str.FOR_ACCEPT
mov eax, dword [ebp + 8]
test byte [eax + 0x1a9], 4
je 0x48bbb5
mov eax, dword [ebp + 8]
test byte [eax + 0x1a0], 1
je 0x48bc91
test edx, edx
je 0x48bc91
push 0x1001
push dword [ebp - 0x4334]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [eax - 1]
cmp edx, 0xfff
ja 0x48bbfa
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 0x48bd11
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x124]
add eax, 4
cmp eax, 0xa
ja 0x48bc19
movzx eax, byte [eax + 0x50901c]
add eax, 0x48bc19
jmp eax
xor ecx, ecx
jmp 0x48bc63
mov dword [ebp - 0x433c], ecx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x48bc80
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x48bc6b
dec eax
xor edx, edx
xor esi, esi
mov dword [ebp - 0x4330], eax
xor ebx, ebx
jmp 0x48bd11
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
test eax, eax
je 0x48c625
mov edx, dword [ebp + 0xc]
cmp byte [eax], 0x20
mov esi, dword [edx + 8]
jne 0x48bcb5
test esi, esi
jle 0x48bccb
inc eax
dec esi
cmp byte [eax], 0x20
je 0x48bcaa
test esi, esi
jle 0x48bccb
movsx ecx, byte [esi + eax - 1]
test ecx, 0xffffffdf
jne 0x48bccb
dec esi
test esi, esi
jg 0x48bcb9
cmp esi, 0x1000
mov ecx, esi
jle 0x48bcda
mov ecx, 0x1000
push ecx
push eax
push dword [ebp - 0x4338]
mov dword [ebp - 0x4330], ecx
call fcn.004ca960
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 0x48bd3c
test eax, eax
jle 0x48bd58
inc ecx
dec eax
cmp byte [ecx], 0x20
jne 0x48bd30
test eax, eax
jle 0x48c60e
inc ecx
dec eax
cmp byte [ecx], 0x20
je 0x48bd21
mov dword [ebp - 0x433c], ecx
mov dword [ebp - 0x4330], eax
test eax, eax
jle 0x48bd58
movsx edi, byte [eax + ecx - 1]
test edi, 0xffffffdf
jne 0x48bd84
dec eax
mov dword [ebp - 0x4330], eax
test eax, eax
jg 0x48bd40
jne 0x48bd84
mov eax, dword [ebp + 8]
test byte [eax + 0x1a9], 4
je 0x48bd84
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x433c]
lea ecx, [ebp - 0x4330]
call fcn.0048c880
mov edi, eax
test edi, edi
jne 0x48bf4f
cmp dword [ebp + 0x18], 0
jne 0x48bdb6
push 4
mov edi, dword [ebp - 0x433c]
lea eax, [ebp - 0x15]
push eax
push edi
call fcn.004dba60
add esp, 0xc
test eax, eax
jne 0x48bdae
mov eax, dword [ebp + 0x1c]
mov dword [eax], 1
jmp 0x48bdb6
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0
je 0x48be0f
cmp esi, 0x1000
jg 0x48bdc6
mov edi, dword [ebp - 0x433c]
jmp 0x48be0f
push dword [ebp - 0x4334]
call fcn.00487660
push dword [ebp - 0x432c]
call fcn.00487660
push dword [ebp - 0x4338]
call fcn.00487660
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x48bfc8
mov eax, 0x311
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
test ebx, ebx
jne 0x48be1a
xor ecx, ecx
jmp 0x48beb9
mov eax, dword [ebp - 0x4330]
push edi
push dword [ebp + 8]
mov byte [edi + eax], 0
call fcn.0045b3e0
add esp, 8
cmp eax, 0xffffffff
je 0x48bfe7
cmp eax, 1
je 0x48be4c
cmp eax, 0xfffffffa
jne 0x48be69
cmp dword [0x2e00b58], 0
jne 0x48be69
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 0x48beb9
test eax, eax
jne 0x48be8a
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 0x48beb9
cmp eax, 2
jne 0x48beac
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 0x48beb9
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 0x48bebc
cmp dword [0x2e00b58], 0
je 0x48bee5
test ebx, ebx
jne 0x48bef5
mov eax, dword [ebp + 8]
cmp dword [eax + 0x104], 0xffffffff
je 0x48bfcd
jmp 0x48bef5
test ebx, ebx
jne 0x48bef5
mov eax, dword [ebp + 8]
cmp dword [eax + 0x104], 0xffffffff
je 0x48bf00
test ecx, ecx
jne 0x48bf00
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
jmp 0x48bf09
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
push dword [ebp - 0x4334]
call fcn.00487660
push dword [ebp - 0x432c]
call fcn.00487660
push dword [ebp - 0x4338]
call fcn.00487660
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x48bfc8
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push dword [ebp - 0x4334]
call fcn.00487660
push dword [ebp - 0x432c]
call fcn.00487660
push dword [ebp - 0x4338]
call fcn.00487660
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x48bfc8
mov eax, edi
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push dword [ebp - 0x432c]
call fcn.00487660
push dword [ebp - 0x4334]
call fcn.00487660
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x48bfc8
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call fcn.004cf95b
test ecx, ecx
jne 0x48bf00
mov eax, dword [ebp + 8]
mov dword [eax + 0x104], 0
jmp 0x48bef9
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0
jne 0x48c601
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test byte [eax + 0x1a9], 8
mov edi, dword [edi + 0xc]
jne 0x48c00f
test edi, edi
je 0x48c2ac
jmp 0x48c017
test edi, edi
je 0x48c5e9
mov eax, dword [ebp + 0xc]
cmp byte [edi], 0x20
mov esi, dword [eax + 0x10]
jne 0x48c02d
test esi, esi
jle 0x48c046
inc edi
dec esi
cmp byte [edi], 0x20
je 0x48c022
test esi, esi
jle 0x48c046
movsx eax, byte [esi + edi - 1]
test eax, 0xffffffdf
jne 0x48c5da
dec esi
test esi, esi
jg 0x48c031
cmp dword [ebp + 0x18], 0
jne 0x48c112
push 4
lea eax, [ebp - 0x15]
push eax
push edi
call fcn.004dba60
add esp, 0xc
test eax, eax
jne 0x48c0c1
mov eax, dword [ebp + 0x1c]
mov dword [eax], 1
cmp esi, 0x1000
jl 0x48c112
push dword [ebp - 0x4334]
call fcn.00487660
push dword [ebp - 0x432c]
call fcn.00487660
push dword [ebp - 0x4338]
call fcn.00487660
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x48bfc8
mov eax, 0x311
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp esi, 0x104
jl 0x48c112
push dword [ebp - 0x4334]
call fcn.00487660
push dword [ebp - 0x432c]
call fcn.00487660
push dword [ebp - 0x4338]
call fcn.00487660
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x48bfc8
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.004ca960
add esp, 0xc
mov eax, dword [ebp - 0x432c]
mov byte [esi + eax], 0
mov edx, dword [ebp - 0x432c]
test edx, edx
je 0x48c5c9
cmp byte [edx], 0x20
jne 0x48c14a
test esi, esi
jle 0x48c15f
inc edx
dec esi
cmp byte [edx], 0x20
je 0x48c13f
test esi, esi
jle 0x48c15f
movsx eax, byte [esi + edx - 1]
test eax, 0xffffffdf
jne 0x48c15f
dec esi
test esi, esi
jg 0x48c14e
mov eax, dword [ebp + 0xc]
cmp dword [eax], 3
je 0x48c45c
test edx, edx
je 0x48c18e
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0
je 0x48c17f
cmp byte [edx + esi], 0x5c
je 0x48c199
jmp 0x48c18e
movsx eax, byte [edx + esi - 1]
cmp eax, 0x2f
je 0x48c199
cmp eax, 0x5c
je 0x48c199
test esi, esi
jle 0x48c199
mov edi, 1
jmp 0x48c19d
xor eax, eax
xor edi, edi
cmp dword [ebp + 0x18], 0
jne 0x48c1ab
mov ecx, dword [ebp + 0x1c]
cmp dword [ecx], 0
je 0x48c20a
mov ecx, esi
add ecx, dword [ebp - 0x4330]
add ecx, edi
cmp ecx, 0x1000
jle 0x48c265
push dword [ebp - 0x4334]
call fcn.00487660
push dword [ebp - 0x432c]
call fcn.00487660
push dword [ebp - 0x4338]
call fcn.00487660
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x48bfc8
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 0x48c265
push dword [ebp - 0x4334]
call fcn.00487660
push dword [ebp - 0x432c]
call fcn.00487660
push dword [ebp - 0x4338]
call fcn.00487660
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x48bfc8
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.004ca960
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, esi
test edi, edi
je 0x48c27f
mov byte [edx], 0x5c
push dword [ebp - 0x4330]
push dword [ebp - 0x433c]
add edx, edi
push edx
call fcn.004ca960
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 0x48bef9
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
cmp eax, 0x411
jne 0x48c3b0
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 0x48c38b
cmp dword [ebp - 0x434c], 0
je 0x48c425
cmp dword [ebp - 0x434c], 0x1001
jae 0x48c425
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 0x48c425
mov edx, dword [ebp - 0x432c]
xor eax, eax
movzx esi, byte [eax + edx]
test esi, 0x80
jne 0x48c425
inc eax
cmp eax, ecx
jl 0x48c35f
mov eax, dword [ebp - 0x434c]
mov dword [ebp - 0x433c], edx
mov dword [ebp - 0x4330], eax
jmp 0x48c425
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x48bfc8
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 0x48c2c0
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 0x48c437
cmp dword [ebp - 0x434c], 0
je 0x48c425
push dword [ebp - 0x434c]
push 0x3f
mov esi, dword [ebp - 0x432c]
push esi
call fcn.004d1a90
add esp, 0xc
test eax, eax
jne 0x48c425
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 0x48c199
jmp 0x48c45c
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x48bfc8
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 0x48c16b
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 0x48c5b7
mov byte [ebp - 0x11a], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xc], 0
je 0x48c54f
push 0x105
push 0
mov dword [ebp - 0x434c], edx
lea edi, [ebp - 0x21f]
push edi
call fcn.004ca8b0
mov edx, dword [ebp - 0x434c]
add esp, 0xc
push edi
push 0
push 0x5091fc
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x48c506
mov eax, dword [ebp + 8]
test byte [eax + 0x1a9], 8
je 0x48c4f4
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 0x48c4f7
jmp 0x48bef9
push dword [ebp - 0x4334]
call fcn.00487660
push dword [ebp - 0x432c]
call fcn.00487660
push dword [ebp - 0x4338]
call fcn.00487660
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x48bfc8
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 0x48c571
mov byte [ebp - 0x324], 0x2e
lea edx, [ebp - 0x324]
mov byte [edx + 1], 0
jmp 0x48c4ad
test ecx, ecx
je 0x48c591
push 0x104
push esi
lea esi, [ebp - 0x324]
push esi
call fcn.0047e980
add esp, 0xc
mov edx, esi
jmp 0x48c4ad
lea esi, [ebp - 0x324]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
mov edx, esi
jne 0x48c4ad
mov edx, 0
jmp 0x48c4ad
cmp ecx, 0x105
jae 0x48c499
inc ecx
jmp 0x48c4a0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 3
jne 0x48c18e
jmp 0x48c45c
cmp dword [ebp + 0x18], 0
je 0x48c050
jmp 0x48c06c
mov eax, dword [ebp + 0xc]
cmp dword [eax], 3
jne 0x48c601
mov eax, dword [ebp + 8]
test byte [eax + 0x1a1], 0x20
je 0x48c2ac
mov edi, dword [ebp - 0x433c]
xor ecx, ecx
jmp 0x48beb9
mov dword [ebp - 0x433c], ecx
mov dword [ebp - 0x4330], eax
je 0x48bd5a
jmp 0x48bd84
mov dword [ebp - 0x4348], str.FORT_d
mov dword [ebp - 0x4344], ecx
call fcn.0045a3e0
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.004db990
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 0x48c800
test ebx, ebx
je 0x48c68a
mov byte [ebx], 0
test eax, eax
je 0x48c6af
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 0x48bd11
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x124]
add eax, 4
cmp eax, 0xa
ja 0x48c6ce
movzx eax, byte [eax + 0x509028]
add eax, 0x48c6ce
jmp eax
xor ecx, ecx
mov eax, dword [ebp + 8]
test byte [eax + 0x1a9], 4
jne 0x48c768
mov eax, dword [ebp + 8]
test byte [eax + 0x1a1], 0x20
je 0x48c70b
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 0x48c7da
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.0045a3e0
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.004db990
add esp, 0x1c
mov ecx, dword [ebp - 0x4338]
mov ebx, 1
mov dword [ebp - 0x433c], ecx
jmp 0x48c7da
mov eax, dword [ebp - 0x4338]
mov ebx, 1
mov byte [eax], 0
mov ecx, dword [ebp - 0x4338]
mov dword [ebp - 0x433c], ecx
jmp 0x48c7da
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x48c7f1
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x48c7dc
dec eax
xor edx, edx
mov dword [ebp - 0x4330], eax
xor esi, esi
jmp 0x48bd11
cmp eax, 0x1001
jae 0x48c683
inc eax
jmp 0x48c68a
mov edx, str.FOR_READ
jmp 0x48bb99
mov eax, dword [ebp + 8]
test byte [eax + 0x1a1], 0x20
jne 0x48bb60
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x48c843
push 0
push 0x212
call fcn.00480060
add esp, 8
push 0x1000
push str.SCRATCH
push dword [ebp - 0x4338]
call fcn.0047e980
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 0x48be20