Function at 0x417640
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x74
mov dword [ebp - 0x60], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x44], 0x607c20
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x40], 0x60e79c
mov dword [ebp - 0x38], 0x41785b
mov dword [ebp - 0x34], esp
mov dword [esp], eax
call fcn.004cf190
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x20], eax
test edx, edx
je 0x4177c0
lea ecx, [ebp - 0x20]
mov dword [esp + 4], 8
mov dword [esp], str.lang.txt
mov dword [ebp - 0x58], 1
call fcn.005defe0
mov ecx, dword [ebp - 0x60]
sub esp, 8
mov edx, ecx
add edx, 8
mov dword [ecx], edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x68], ecx
mov ebx, eax
mov dword [ebp - 0x64], eax
mov eax, ecx
add eax, ebx
je 0x4176f0
test ecx, ecx
jne 0x4176f0
mov dword [esp], 0x636668
mov dword [ebp - 0x58], 1
call fcn.005fe890
mov esi, esi
lea edi, [edi]
mov eax, dword [ebp - 0x64]
cmp eax, 0xf
mov dword [ebp - 0x24], eax
ja 0x417750
cmp dword [ebp - 0x64], 1
je 0x4177a0
mov eax, dword [ebp - 0x64]
test eax, eax
jne 0x4178c0
mov edx, dword [ebp - 0x60]
xor eax, eax
mov edx, dword [edx]
mov ebx, dword [ebp - 0x60]
mov dword [ebx + 4], eax
mov byte [edx + eax], 0
lea ebx, [ebp - 0x18]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x417733
mov dword [esp], eax
call fcn.00606c40
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call fcn.004cf200
mov eax, dword [ebp - 0x60]
mov ebx, dword [ebp - 4]
leave
ret
lea eax, [ebp - 0x24]
mov dword [esp + 4], 0
mov dword [esp], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x58], 1
call fcn.005df130
mov ebx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x24]
sub esp, 8
mov dword [ebx], eax
mov dword [ebx + 8], edx
mov edx, dword [ebp - 0x64]
mov dword [esp + 8], edx
mov ebx, dword [ebp - 0x68]
mov dword [esp], eax
mov dword [esp + 4], ebx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x24]
mov edx, dword [edx]
jmp 0x417717
mov eax, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x60]
movzx eax, byte [eax]
mov byte [ebx + 8], al
mov eax, 1
jmp 0x417717
mov dword [esp], str.USERPROFILE
call sub.msvcrt.dll_getenv
test eax, eax
mov dword [ebp - 0x64], eax
je 0x417890
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [ebp - 0x58], 1
call fcn.005dcdd0
mov edx, 0x7fffffff
sub edx, dword [eax + 4]
sub esp, 0x10
cmp edx, 0xd
jbe 0x4178e1
mov dword [esp + 4], 0xe
mov dword [esp], str._fldigi.files_
mov ecx, eax
mov dword [ebp - 0x58], 1
call fcn.005defe0
mov eax, 0x7fffffff
sub eax, dword [ebp - 0x1c]
sub esp, 8
cmp eax, 7
ja 0x417692
mov dword [esp], 0x636638
call fcn.005fec50
add ebp, 8
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x20]
cmp eax, edx
je 0x417876
mov dword [esp], eax
call fcn.00606c40
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call fcn.004cf4a0
nop
lea esi, [esi]
mov edx, dword [ebp - 0x60]
lea ebx, [ebp - 0x18]
mov eax, edx
add eax, 8
mov dword [edx], eax
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x4178c7
mov edx, dword [ebp - 0x60]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x60]
mov dword [ebx + 4], eax
jmp 0x417733
mov eax, edx
jmp 0x41777b
mov eax, dword [ebp - 0x18]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x14], eax
jmp 0x4178af
mov dword [esp], 0x636638
call fcn.005fec50
lea esi, [esi]