Function at 0x4629b0
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 0x462fe8
je 0x462b7b
cmp eax, 0x4e
je 0x462b4c
cmp eax, 0x110
jne case.0x462de3.2237
mov eax, dword [0x52fe30]
movzx ecx, byte [eax + 0x1168]
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 [0x52fe30]
cmp dword [eax + 0x116c], 0
je 0x462a26
mov eax, dword [eax + 0x116c]
jmp 0x462a2b
mov eax, 0x4e5034
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push eax
push 0x5ec
push esi
call edi
mov eax, dword [0x52fe30]
cmp dword [eax + 0x1170], 0
je 0x462a59
mov eax, dword [eax + 0x1170]
cmp word [eax], 0x40
jne 0x462a5e
add eax, 2
jmp 0x462a5e
mov eax, 0x4e5034
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 0x4f2c5c
push ebx
push 0x143
push 0x8c0
push esi
call edi
mov ecx, dword [0x52fe30]
push ebx
call fcn.0044ecd0
test eax, eax
je 0x462ac5
mov edx, dword [eax + 4]
push edx
push 0
push 0x143
push 0x8c0
push esi
inc ebx
call edi
mov ecx, dword [0x52fe30]
push ebx
call fcn.0044ecd0
test eax, eax
jne 0x462aa1
mov eax, dword [0x52fe30]
cmp dword [eax + 0x1174], 0
je 0x462adb
mov eax, dword [eax + 0x1174]
jmp 0x462ae0
mov eax, 0x4e5034
push eax
push 0x8c0
push esi
call fcn.0045c2f0
add esp, 0xc
test eax, eax
jg 0x462b1e
mov eax, dword [0x52fe30]
cmp byte [eax + 0x1168], 2
jne 0x462b1e
push 0x8b9
push 0x8bc
push 0x8b9
push esi
mov byte [eax + 0x1168], 0
call dword [sym.imp.USER32.dll_CheckRadioButton]
mov eax, dword [0x52fe30]
movzx ecx, byte [eax + 0x1168]
push 0
add ecx, 0x8b9
push ecx
mov ecx, dword [ebp - 4]
push 0x111
push esi
call fcn.004629b0
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.0x462de3.2237
mov edx, dword [ebp + 0x10]
mov ecx, dword [0x52fe34]
push eax
mov eax, dword [ebp + 8]
push edx
push 0x4e
push eax
call fcn.0045b120
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 0x462dc8
sub eax, 1
je 0x462ce3
sub eax, 0x2ff
jne case.0x462de3.2237
movzx eax, bx
cmp eax, 0x5ec
je 0x462cba
cmp eax, 0x8bf
jne case.0x462de3.2237
mov edx, dword [ebp + 8]
push ecx
push ecx
mov dword [ebp + 0x10], ecx
lea ecx, [ebp + 0x10]
push ecx
push eax
push edx
call fcn.004601e0
mov edi, dword [ebp + 0x10]
mov esi, eax
add esp, 0x14
test esi, esi
jle 0x462c71
test edi, edi
je 0x462c71
movzx eax, word [edi]
test ax, ax
je 0x462c71
lea ebx, [edi + 2]
cmp ax, 0x40
je 0x462bfc
mov ebx, edi
mov eax, dword [0x52fe30]
cmp dword [eax + 0x1170], 0
je 0x462c29
mov eax, dword [eax + 0x1170]
push eax
call fcn.0044c4f0
mov ecx, dword [0x52fe30]
add esp, 4
mov dword [ecx + 0x1170], 0
lea edx, [esi + 2]
push 2
push edx
call fcn.0044c490
mov ecx, dword [0x52fe30]
mov dword [ecx + 0x1170], eax
mov edx, dword [0x52fe30]
mov eax, dword [edx + 0x1170]
mov ecx, 0x40
mov word [eax], cx
mov edx, dword [0x52fe30]
mov eax, dword [edx + 0x1170]
add esp, 8
push ebx
inc esi
push esi
add eax, 2
push eax
call fcn.00401730
jmp 0x462c9e
mov eax, dword [0x52fe30]
cmp dword [eax + 0x1170], 0
je 0x462c9e
mov ecx, dword [eax + 0x1170]
push ecx
call fcn.0044c4f0
mov edx, dword [0x52fe30]
add esp, 4
mov dword [edx + 0x1170], 0
test edi, edi
je case.0x462de3.2237
push edi
call fcn.0044c4f0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x52fe30]
push ecx
push ecx
mov ecx, dword [ebp + 8]
add eax, 0x116c
push eax
push 0x5ec
push ecx
call fcn.004601e0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, 0x8c0
cmp bx, dx
jne case.0x462de3.2237
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push edx
push esi
mov dword [ebp + 0x10], ecx
call fcn.00460390
mov ebx, dword [ebp + 0x10]
add esp, 0xc
test ebx, ebx
je 0x462d56
push 0x4f2c5c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x462d9b
mov eax, dword [0x52fe30]
cmp dword [eax + 0x1174], 0
je 0x462d4e
mov ecx, dword [eax + 0x1174]
push ecx
call fcn.0044c4f0
mov edx, dword [0x52fe30]
mov dword [edx + 0x1174], 0
mov eax, dword [0x52fe30]
add esp, 4
mov dword [eax + 0x1174], ebx
jmp 0x462d9b
mov eax, dword [0x52fe30]
push 0x8b9
push 0x8bc
push 0x8b9
push esi
mov byte [eax + 0x1168], 0
call dword [sym.imp.USER32.dll_CheckRadioButton]
mov ecx, dword [0x52fe30]
movzx edx, byte [ecx + 0x1168]
push 0
add edx, 0x8b9
push edx
push 0x111
push esi
mov ecx, edi
call fcn.004629b0
mov eax, dword [0x52fe30]
movzx ecx, byte [eax + 0x1168]
push 0
add ecx, 0x8b9
push ecx
push 0x440
push esi
mov ecx, edi
call fcn.004629b0
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.0x462de3.2237
movzx edx, byte [eax + 0x4630a4]
jmp dword [edx*4 + 0x463098]
mov ecx, dword [0x52fe30]
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov al, bl
add al, 0x47
mov byte [ecx + 0x1168], 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]
push 0
push 0x8bd
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0x8be
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, 0x8bb
cmp bx, dx
je 0x462ec0
mov eax, 0x8bc
cmp bx, ax
je 0x462ec0
xor eax, eax
jmp 0x462ec5
mov eax, 1
push eax
push 0x849
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, 0x8bb
cmp bx, cx
je 0x462eed
mov edx, 0x8bc
cmp bx, dx
je 0x462eed
xor eax, eax
jmp 0x462ef2
mov eax, 1
push eax
push 0x846
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push 0
push eax
push 0x440
push esi
call fcn.004629b0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor edx, edx
mov ecx, 0x8c4
cmp bx, cx
mov ecx, dword [ebp + 8]
setne dl
push 0x104
lea eax, [ebp - 0x20c]
push eax
dec edx
and edx, 0xfffffd2d
add edx, 0x8bf
mov edi, edx
push edi
push ecx
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
test eax, eax
jne 0x462f61
xor edx, edx
mov word [ebp - 0x20c], dx
push 0x105
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, 0x8c4
cmp bx, dx
jne 0x462f90
mov eax, 0x4faf80
mov esi, str.Choose_application
jmp 0x462f9a
mov eax, str.Text_files__.txt_
mov esi, str.Choose_command_file
mov ecx, edx
xor edx, edx
cmp bx, cx
sete dl
lea ecx, [ebp - 0x418]
push edx
push eax
mov eax, dword [0x5306c8]
push eax
push 0
push ecx
push esi
call fcn.00428670
mov esi, eax
add esp, 0x18
test esi, esi
je case.0x462de3.2237
mov edx, dword [ebp + 8]
push esi
push edi
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push esi
call fcn.0044c4f0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0x440
jne case.0x462de3.2237
mov eax, dword [ebp + 0x10]
cmp eax, 0x8bc
je 0x463008
cmp eax, 0x8bb
jne case.0x462de3.2237
mov eax, dword [0x52fe30]
mov al, byte [eax + 0x1168]
cmp al, 3
je 0x46303c
cmp al, 2
je 0x46303a
mov ecx, dword [ebp + 8]
push 0x4e5034
push 0x846
push ecx
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 0x463046
or eax, 0xffffffff
jmp 0x463063
push 0
push 0
push 0x147
push 0x8c0
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
dec eax
cmp eax, 0xffffffff
je 0x463078
jl 0x463078
mov ecx, dword [0x52fe30]
push eax
call fcn.0044ecd0
test eax, eax
je 0x463078
mov eax, dword [eax + 0x14]
jmp 0x46307d
mov eax, 0x4e5034
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