Function at 0x624110
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.00692d40
xor edx, edx
mov eax, dword [0x7adbc0]
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.005e1480
add esp, 0xc
test eax, eax
je 0x624178
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x624658
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.005e1480
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x6241c4
push dword [ebp - 0x432c]
call fcn.005e1540
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x624658
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.005e1480
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x624621
mov eax, dword [ebp + 0xc]
cmp dword [eax], 3
je 0x624eab
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x124]
cmp ecx, 0xfffffffc
je 0x624ea1
cmp ecx, 0xfffffffd
je 0x624224
cmp ecx, 0xfffffffe
jne 0x624213
mov edx, str.FOR_TYPE
jmp 0x624229
cmp ecx, 0xffffffff
mov edx, str.FOR_PRINT
je 0x624229
mov edx, 0
jmp 0x624229
mov edx, str.FOR_ACCEPT
mov eax, dword [ebp + 8]
test byte [eax + 0x1a9], 4
je 0x624245
mov eax, dword [ebp + 8]
test byte [eax + 0x1a0], 1
je 0x624321
test edx, edx
je 0x624321
push 0x1001
push dword [ebp - 0x4334]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [eax - 1]
cmp edx, 0xfff
ja 0x62428a
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 0x6243a1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x124]
add eax, 4
cmp eax, 0xa
ja 0x6242a9
movzx eax, byte [eax + 0x74b3d4]
add eax, 0x6242a9
jmp eax
xor ecx, ecx
jmp 0x6242f3
mov dword [ebp - 0x433c], ecx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x624310
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x6242fb
dec eax
xor edx, edx
xor esi, esi
mov dword [ebp - 0x4330], eax
xor ebx, ebx
jmp 0x6243a1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
test eax, eax
je 0x624cb5
mov edx, dword [ebp + 0xc]
cmp byte [eax], 0x20
mov esi, dword [edx + 8]
jne 0x624345
test esi, esi
jle 0x62435b
inc eax
dec esi
cmp byte [eax], 0x20
je 0x62433a
test esi, esi
jle 0x62435b
movsx ecx, byte [esi + eax - 1]
test ecx, 0xffffffdf
jne 0x62435b
dec esi
test esi, esi
jg 0x624349
cmp esi, 0x1000
mov ecx, esi
jle 0x62436a
mov ecx, 0x1000
push ecx
push eax
push dword [ebp - 0x4338]
mov dword [ebp - 0x4330], ecx
call fcn.0065d430
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 0x6243cc
test eax, eax
jle 0x6243e8
inc ecx
dec eax
cmp byte [ecx], 0x20
jne 0x6243c0
test eax, eax
jle 0x624c9e
inc ecx
dec eax
cmp byte [ecx], 0x20
je 0x6243b1
mov dword [ebp - 0x433c], ecx
mov dword [ebp - 0x4330], eax
test eax, eax
jle 0x6243e8
movsx edi, byte [eax + ecx - 1]
test edi, 0xffffffdf
jne 0x624414
dec eax
mov dword [ebp - 0x4330], eax
test eax, eax
jg 0x6243d0
jne 0x624414
mov eax, dword [ebp + 8]
test byte [eax + 0x1a9], 4
je 0x624414
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x433c]
lea ecx, [ebp - 0x4330]
call fcn.00624f30
mov edi, eax
test edi, edi
jne 0x6245df
cmp dword [ebp + 0x18], 0
jne 0x624446
push 4
mov edi, dword [ebp - 0x433c]
lea eax, [ebp - 0x15]
push eax
push edi
call fcn.006c5ff0
add esp, 0xc
test eax, eax
jne 0x62443e
mov eax, dword [ebp + 0x1c]
mov dword [eax], 1
jmp 0x624446
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0
je 0x62449f
cmp esi, 0x1000
jg 0x624456
mov edi, dword [ebp - 0x433c]
jmp 0x62449f
push dword [ebp - 0x4334]
call fcn.005e1540
push dword [ebp - 0x432c]
call fcn.005e1540
push dword [ebp - 0x4338]
call fcn.005e1540
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x624658
mov eax, 0x311
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
test ebx, ebx
jne 0x6244aa
xor ecx, ecx
jmp 0x624549
mov eax, dword [ebp - 0x4330]
push edi
push dword [ebp + 8]
mov byte [edi + eax], 0
call fcn.005eb130
add esp, 8
cmp eax, 0xffffffff
je 0x624677
cmp eax, 1
je 0x6244dc
cmp eax, 0xfffffffa
jne 0x6244f9
cmp dword [0x80ec60], 0
jne 0x6244f9
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 0x624549
test eax, eax
jne 0x62451a
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 0x624549
cmp eax, 2
jne 0x62453c
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 0x624549
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 0x62454c
cmp dword [0x80ec60], 0
je 0x624575
test ebx, ebx
jne 0x624585
mov eax, dword [ebp + 8]
cmp dword [eax + 0x104], 0xffffffff
je 0x62465d
jmp 0x624585
test ebx, ebx
jne 0x624585
mov eax, dword [ebp + 8]
cmp dword [eax + 0x104], 0xffffffff
je 0x624590
test ecx, ecx
jne 0x624590
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
jmp 0x624599
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
push dword [ebp - 0x4334]
call fcn.005e1540
push dword [ebp - 0x432c]
call fcn.005e1540
push dword [ebp - 0x4338]
call fcn.005e1540
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x624658
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push dword [ebp - 0x4334]
call fcn.005e1540
push dword [ebp - 0x432c]
call fcn.005e1540
push dword [ebp - 0x4338]
call fcn.005e1540
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x624658
mov eax, edi
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push dword [ebp - 0x432c]
call fcn.005e1540
push dword [ebp - 0x4334]
call fcn.005e1540
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x624658
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call fcn.00693023
test ecx, ecx
jne 0x624590
mov eax, dword [ebp + 8]
mov dword [eax + 0x104], 0
jmp 0x624589
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0
jne 0x624c91
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test byte [eax + 0x1a9], 8
mov edi, dword [edi + 0xc]
jne 0x62469f
test edi, edi
je 0x62493c
jmp 0x6246a7
test edi, edi
je 0x624c79
mov eax, dword [ebp + 0xc]
cmp byte [edi], 0x20
mov esi, dword [eax + 0x10]
jne 0x6246bd
test esi, esi
jle 0x6246d6
inc edi
dec esi
cmp byte [edi], 0x20
je 0x6246b2
test esi, esi
jle 0x6246d6
movsx eax, byte [esi + edi - 1]
test eax, 0xffffffdf
jne 0x624c6a
dec esi
test esi, esi
jg 0x6246c1
cmp dword [ebp + 0x18], 0
jne 0x6247a2
push 4
lea eax, [ebp - 0x15]
push eax
push edi
call fcn.006c5ff0
add esp, 0xc
test eax, eax
jne 0x624751
mov eax, dword [ebp + 0x1c]
mov dword [eax], 1
cmp esi, 0x1000
jl 0x6247a2
push dword [ebp - 0x4334]
call fcn.005e1540
push dword [ebp - 0x432c]
call fcn.005e1540
push dword [ebp - 0x4338]
call fcn.005e1540
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x624658
mov eax, 0x311
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp esi, 0x104
jl 0x6247a2
push dword [ebp - 0x4334]
call fcn.005e1540
push dword [ebp - 0x432c]
call fcn.005e1540
push dword [ebp - 0x4338]
call fcn.005e1540
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x624658
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.0065d430
add esp, 0xc
mov eax, dword [ebp - 0x432c]
mov byte [esi + eax], 0
mov edx, dword [ebp - 0x432c]
test edx, edx
je 0x624c59
cmp byte [edx], 0x20
jne 0x6247da
test esi, esi
jle 0x6247ef
inc edx
dec esi
cmp byte [edx], 0x20
je 0x6247cf
test esi, esi
jle 0x6247ef
movsx eax, byte [esi + edx - 1]
test eax, 0xffffffdf
jne 0x6247ef
dec esi
test esi, esi
jg 0x6247de
mov eax, dword [ebp + 0xc]
cmp dword [eax], 3
je 0x624aec
test edx, edx
je 0x62481e
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0
je 0x62480f
cmp byte [edx + esi], 0x5c
je 0x624829
jmp 0x62481e
movsx eax, byte [edx + esi - 1]
cmp eax, 0x2f
je 0x624829
cmp eax, 0x5c
je 0x624829
test esi, esi
jle 0x624829
mov edi, 1
jmp 0x62482d
xor eax, eax
xor edi, edi
cmp dword [ebp + 0x18], 0
jne 0x62483b
mov ecx, dword [ebp + 0x1c]
cmp dword [ecx], 0
je 0x62489a
mov ecx, esi
add ecx, dword [ebp - 0x4330]
add ecx, edi
cmp ecx, 0x1000
jle 0x6248f5
push dword [ebp - 0x4334]
call fcn.005e1540
push dword [ebp - 0x432c]
call fcn.005e1540
push dword [ebp - 0x4338]
call fcn.005e1540
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x624658
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 0x6248f5
push dword [ebp - 0x4334]
call fcn.005e1540
push dword [ebp - 0x432c]
call fcn.005e1540
push dword [ebp - 0x4338]
call fcn.005e1540
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x624658
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.0065d430
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, esi
test edi, edi
je 0x62490f
mov byte [edx], 0x5c
push dword [ebp - 0x4330]
push dword [ebp - 0x433c]
add edx, edi
push edx
call fcn.0065d430
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 0x624589
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
cmp eax, 0x411
jne 0x624a40
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 0x624a1b
cmp dword [ebp - 0x434c], 0
je 0x624ab5
cmp dword [ebp - 0x434c], 0x1001
jae 0x624ab5
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 0x624ab5
mov edx, dword [ebp - 0x432c]
xor eax, eax
movzx esi, byte [eax + edx]
test esi, 0x80
jne 0x624ab5
inc eax
cmp eax, ecx
jl 0x6249ef
mov eax, dword [ebp - 0x434c]
mov dword [ebp - 0x433c], edx
mov dword [ebp - 0x4330], eax
jmp 0x624ab5
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x624658
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 0x624950
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 0x624ac7
cmp dword [ebp - 0x434c], 0
je 0x624ab5
push dword [ebp - 0x434c]
push 0x3f
mov esi, dword [ebp - 0x432c]
push esi
call fcn.006960a0
add esp, 0xc
test eax, eax
jne 0x624ab5
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 0x624829
jmp 0x624aec
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x624658
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 0x6247fb
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 0x624c47
mov byte [ebp - 0x11a], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xc], 0
je 0x624bdf
push 0x105
push 0
mov dword [ebp - 0x434c], edx
lea edi, [ebp - 0x21f]
push edi
call fcn.0065d380
mov edx, dword [ebp - 0x434c]
add esp, 0xc
push edi
push 0
push 0x74b5dc
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x624b96
mov eax, dword [ebp + 8]
test byte [eax + 0x1a9], 8
je 0x624b84
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 0x624b87
jmp 0x624589
push dword [ebp - 0x4334]
call fcn.005e1540
push dword [ebp - 0x432c]
call fcn.005e1540
push dword [ebp - 0x4338]
call fcn.005e1540
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x624658
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 0x624c01
mov byte [ebp - 0x324], 0x2e
lea edx, [ebp - 0x324]
mov byte [edx + 1], 0
jmp 0x624b3d
test ecx, ecx
je 0x624c21
push 0x104
push esi
lea esi, [ebp - 0x324]
push esi
call fcn.00609a10
add esp, 0xc
mov edx, esi
jmp 0x624b3d
lea esi, [ebp - 0x324]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
mov edx, esi
jne 0x624b3d
mov edx, 0
jmp 0x624b3d
cmp ecx, 0x105
jae 0x624b29
inc ecx
jmp 0x624b30
mov eax, dword [ebp + 0xc]
cmp dword [eax], 3
jne 0x62481e
jmp 0x624aec
cmp dword [ebp + 0x18], 0
je 0x6246e0
jmp 0x6246fc
mov eax, dword [ebp + 0xc]
cmp dword [eax], 3
jne 0x624c91
mov eax, dword [ebp + 8]
test byte [eax + 0x1a1], 0x20
je 0x62493c
mov edi, dword [ebp - 0x433c]
xor ecx, ecx
jmp 0x624549
mov dword [ebp - 0x433c], ecx
mov dword [ebp - 0x4330], eax
je 0x6243ea
jmp 0x624414
mov dword [ebp - 0x4348], str.FORT_d
mov dword [ebp - 0x4344], ecx
call fcn.00692c20
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.006bd03d
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 0x624e90
test ebx, ebx
je 0x624d1a
mov byte [ebx], 0
test eax, eax
je 0x624d3f
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 0x6243a1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x124]
add eax, 4
cmp eax, 0xa
ja 0x624d5e
movzx eax, byte [eax + 0x74b3e0]
add eax, 0x624d5e
jmp eax
xor ecx, ecx
mov eax, dword [ebp + 8]
test byte [eax + 0x1a9], 4
jne 0x624df8
mov eax, dword [ebp + 8]
test byte [eax + 0x1a1], 0x20
je 0x624d9b
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 0x624e6a
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.00692c20
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.006bd03d
add esp, 0x1c
mov ecx, dword [ebp - 0x4338]
mov ebx, 1
mov dword [ebp - 0x433c], ecx
jmp 0x624e6a
mov eax, dword [ebp - 0x4338]
mov ebx, 1
mov byte [eax], 0
mov ecx, dword [ebp - 0x4338]
mov dword [ebp - 0x433c], ecx
jmp 0x624e6a
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x624e81
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x624e6c
dec eax
xor edx, edx
mov dword [ebp - 0x4330], eax
xor esi, esi
jmp 0x6243a1
cmp eax, 0x1001
jae 0x624d13
inc eax
jmp 0x624d1a
mov edx, str.FOR_READ
jmp 0x624229
mov eax, dword [ebp + 8]
test byte [eax + 0x1a1], 0x20
jne 0x6241f0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x624ed3
push 0
push 0x212
call fcn.0060b140
add esp, 8
push 0x1000
push str.SCRATCH
push dword [ebp - 0x4338]
call fcn.00609a10
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 0x6244b0