Function at 0x4569b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
cmp eax, 0x111
ja 0x456ffd
je 0x456b7b
cmp eax, 0x4e
je 0x456b4c
cmp eax, 0x110
jne case.0x456de1.2237
mov eax, dword [0x50b3a0]
movzx ecx, byte [eax + 0x1164]
mov esi, dword [ebp + 8]
add ecx, 0x8b9
push ecx
push 0x8bc
push 0x8b9
push esi
call dword [sym.imp.USER32.dll_CheckRadioButton]
mov eax, dword [0x50b3a0]
cmp dword [eax + 0x1168], 0
je 0x456a26
mov eax, dword [eax + 0x1168]
jmp 0x456a2b
mov eax, 0x4c1318
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push eax
push 0x5ec
push esi
call edi
mov eax, dword [0x50b3a0]
cmp dword [eax + 0x116c], 0
je 0x456a59
mov eax, dword [eax + 0x116c]
cmp word [eax], 0x40
jne 0x456a5e
add eax, 2
jmp 0x456a5e
mov eax, 0x4c1318
push eax
push 0x8bf
push esi
call edi
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ebx, ebx
push ebx
push ebx
push 0x14b
push 0x8c0
push esi
call edi
push 0x4d2d5c
push ebx
push 0x143
push 0x8c0
push esi
call edi
mov ecx, dword [0x50b3a0]
push ebx
call fcn.00443590
test eax, eax
je 0x456ac5
mov edx, dword [eax + 4]
push edx
push 0
push 0x143
push 0x8c0
push esi
inc ebx
call edi
mov ecx, dword [0x50b3a0]
push ebx
call fcn.00443590
test eax, eax
jne 0x456aa1
mov eax, dword [0x50b3a0]
cmp dword [eax + 0x1170], 0
je 0x456adb
mov eax, dword [eax + 0x1170]
jmp 0x456ae0
mov eax, 0x4c1318
push eax
push 0x8c0
push esi
call fcn.00450b90
add esp, 0xc
test eax, eax
jg 0x456b1e
mov eax, dword [0x50b3a0]
cmp byte [eax + 0x1164], 2
jne 0x456b1e
push 0x8b9
push 0x8bc
push 0x8b9
push esi
mov byte [eax + 0x1164], 0
call dword [sym.imp.USER32.dll_CheckRadioButton]
mov eax, dword [0x50b3a0]
movzx ecx, byte [eax + 0x1164]
push 0
add ecx, 0x8b9
push ecx
mov ecx, dword [ebp - 4]
push 0x111
push esi
call fcn.004569b0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
cmp dword [eax + 8], 0xfffffdee
jne case.0x456de1.2237
mov edx, dword [ebp + 0x10]
mov ecx, dword [0x50b3a4]
push eax
mov eax, dword [ebp + 8]
push edx
push 0x4e
push eax
call fcn.0044f740
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp + 0x10]
mov eax, ebx
shr eax, 0x10
xor ecx, ecx
sub eax, ecx
je 0x456dc6
sub eax, 1
je 0x456ce1
sub eax, 0x2ff
jne case.0x456de1.2237
movzx eax, bx
cmp eax, 0x5ec
je 0x456cb9
cmp eax, 0x8bf
jne case.0x456de1.2237
mov edx, dword [ebp + 8]
push ecx
mov dword [ebp + 0x10], ecx
lea ecx, [ebp + 0x10]
push ecx
push eax
push edx
call fcn.004544d0
mov edi, dword [ebp + 0x10]
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x456c70
test edi, edi
je 0x456c70
movzx eax, word [edi]
test ax, ax
je 0x456c70
lea ebx, [edi + 2]
cmp ax, 0x40
je 0x456bfb
mov ebx, edi
mov eax, dword [0x50b3a0]
cmp dword [eax + 0x116c], 0
je 0x456c28
mov eax, dword [eax + 0x116c]
push eax
call fcn.00441300
mov ecx, dword [0x50b3a0]
add esp, 4
mov dword [ecx + 0x116c], 0
lea edx, [esi + 2]
push 2
push edx
call fcn.004412c0
mov ecx, dword [0x50b3a0]
mov dword [ecx + 0x116c], eax
mov edx, dword [0x50b3a0]
mov eax, dword [edx + 0x116c]
mov ecx, 0x40
mov word [eax], cx
mov edx, dword [0x50b3a0]
mov eax, dword [edx + 0x116c]
add esp, 8
push ebx
inc esi
push esi
add eax, 2
push eax
call fcn.00401800
jmp 0x456c9d
mov eax, dword [0x50b3a0]
cmp dword [eax + 0x116c], 0
je 0x456c9d
mov ecx, dword [eax + 0x116c]
push ecx
call fcn.00441300
mov edx, dword [0x50b3a0]
add esp, 4
mov dword [edx + 0x116c], 0
test edi, edi
je case.0x456de1.2237
push edi
call fcn.00441300
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x50b3a0]
push ecx
mov ecx, dword [ebp + 8]
add eax, 0x1168
push eax
push 0x5ec
push ecx
call fcn.004544d0
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, 0x8c0
cmp bx, dx
jne case.0x456de1.2237
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push edx
push esi
mov dword [ebp + 0x10], ecx
call fcn.004545e0
mov ebx, dword [ebp + 0x10]
add esp, 0xc
test ebx, ebx
je 0x456d54
push 0x4d2d5c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x456d99
mov eax, dword [0x50b3a0]
cmp dword [eax + 0x1170], 0
je 0x456d4c
mov ecx, dword [eax + 0x1170]
push ecx
call fcn.00441300
mov edx, dword [0x50b3a0]
mov dword [edx + 0x1170], 0
mov eax, dword [0x50b3a0]
add esp, 4
mov dword [eax + 0x1170], ebx
jmp 0x456d99
mov eax, dword [0x50b3a0]
push 0x8b9
push 0x8bc
push 0x8b9
push esi
mov byte [eax + 0x1164], 0
call dword [sym.imp.USER32.dll_CheckRadioButton]
mov ecx, dword [0x50b3a0]
movzx edx, byte [ecx + 0x1164]
push 0
add edx, 0x8b9
push edx
push 0x111
push esi
mov ecx, edi
call fcn.004569b0
mov eax, dword [0x50b3a0]
movzx ecx, byte [eax + 0x1164]
push 0
add ecx, 0x8b9
push ecx
push 0x440
push esi
mov ecx, edi
call fcn.004569b0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
movzx eax, bx
mov dword [ebp + 0xc], eax
add eax, 0xfffff747
cmp eax, 0xc
ja case.0x456de1.2237
movzx edx, byte [eax + 0x4570b8]
jmp dword [edx*4 + 0x4570ac]
mov ecx, dword [0x50b3a0]
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov al, bl
add al, 0x47
mov byte [ecx + 0x1164], al
xor eax, eax
mov edx, 0x8b9
cmp bx, dx
sete al
push eax
push 0x5ec
push esi
mov dword [ebp + 0x10], eax
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebp + 0x10]
push eax
push 0x8c4
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
mov ecx, 0x8ba
cmp bx, cx
sete al
push eax
push 0x8bf
push esi
mov dword [ebp + 8], eax
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
push edx
push 0x8c5
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
xor ecx, ecx
mov eax, 0x8bb
cmp bx, ax
sete cl
push ecx
push 0x8c0
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
mov edx, 0x8bc
cmp bx, dx
sete al
push eax
push 0x8bd
push esi
mov dword [ebp + 8], eax
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebp + 8]
push eax
push 0x8be
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, 0x8bb
cmp bx, cx
je 0x456ecf
mov edx, 0x8bc
cmp bx, dx
je 0x456ecf
xor eax, eax
jmp 0x456ed4
mov eax, 1
push eax
push 0x849
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, 0x8bb
cmp bx, ax
je 0x456efc
mov ecx, 0x8bc
cmp bx, cx
je 0x456efc
xor eax, eax
jmp 0x456f01
mov eax, 1
push eax
push 0x846
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push 0
push edx
push 0x440
push esi
call fcn.004569b0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor ecx, ecx
mov eax, 0x8c4
cmp bx, ax
mov eax, dword [ebp + 8]
setne cl
push 0x104
lea edx, [ebp - 0x20c]
push edx
dec ecx
and ecx, 0xfffffd2d
add ecx, 0x8bf
mov edi, ecx
push edi
push eax
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
test eax, eax
jne 0x456f70
xor ecx, ecx
mov word [ebp - 0x20c], cx
push 0x105
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, 0x8c4
cmp bx, cx
jne 0x456f9f
mov eax, 0x4d9f90
mov ecx, str.Choose_application
jmp 0x456fa9
mov eax, str.Text_files__.txt_
mov ecx, str.Choose_command_file
mov edx, 0x8c4
cmp bx, dx
push 0
sete dl
push 0
movzx edx, dl
push edx
push eax
mov eax, dword [0x50bb90]
push eax
lea edx, [ebp - 0x418]
push edx
push ecx
call fcn.00421f50
mov esi, eax
add esp, 0x1c
test esi, esi
je case.0x456de1.2237
mov eax, dword [ebp + 8]
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push esi
call fcn.00441300
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0x440
jne case.0x456de1.2237
mov eax, dword [ebp + 0x10]
cmp eax, 0x8bc
je 0x45701d
cmp eax, 0x8bb
jne case.0x456de1.2237
mov ecx, dword [0x50b3a0]
mov al, byte [ecx + 0x1164]
cmp al, 3
je 0x457052
cmp al, 2
je 0x457050
mov edx, dword [ebp + 8]
push 0x4c1318
push 0x846
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp al, 3
mov esi, dword [ebp + 8]
jne 0x45705c
or eax, 0xffffffff
jmp 0x457079
push 0
push 0
push 0x147
push 0x8c0
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
dec eax
cmp eax, 0xffffffff
je 0x45708e
jl 0x45708e
mov ecx, dword [0x50b3a0]
push eax
call fcn.00443590
test eax, eax
je 0x45708e
mov eax, dword [eax + 0x14]
jmp 0x457093
mov eax, 0x4c1318
push eax
push 0x846
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10