Function at 0x407920
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1cc
mov eax, dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [esp], 0xfffffff6
mov dword [ebp - 0x1b4], eax
call eax
lea edx, [ebp - 0x188]
sub esp, 4
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetConsoleMode]
mov dword [0x437470], 0
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp + 8]
sub esp, 8
mov dword [esp], eax
call sym._WCMD_skip_leading_spaces
test eax, eax
je 0x407e70
cmp word [eax], 0
mov ebx, eax
je 0x408030
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x407990
sub eax, ebx
sar eax, 1
lea esi, [eax + eax + 2]
mov dword [esp], esi
call dbg.heap_xalloc
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [ebp - 0x1a4], eax
call sym._memcpy
mov eax, dword [ebp - 0x1a4]
mov dword [esp], eax
call sym._WCMD_skip_leading_spaces
xor edx, edx
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1ac], 0
mov ebx, eax
mov dword [ebp - 0x1b0], 0
mov word [ebp - 0x1a0], dx
mov dword [ebp - 0x19c], 0
cmp word [ebx], 0x2f
jne 0x408040
movzx eax, word [ebx + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_towupper]
cmp ax, 0x4e
je 0x407c33
jbe 0x407af5
cmp ax, 0x53
je 0x407c90
cmp ax, 0x54
jne 0x407c50
movzx eax, word [ebx + 4]
mov word [ebp - 0x1a0], ax
cmp ax, 0x3a
je 0x407cc2
lea eax, [ebx + 4]
cmp word [ebp - 0x1a0], 0
je 0x408590
cmp word [eax + 2], 0x2c
jne 0x40854e
lea esi, [eax + 4]
movzx eax, word [eax + 4]
xor edi, edi
mov dword [ebp - 0x18c], 0
lea ebx, [ebp - 0x184]
mov word [ebp - 0x184], ax
test ax, ax
jne 0x407aaf
jmp 0x407abd
test eax, eax
je 0x407abd
add edi, 1
add esi, 2
mov dword [ebp - 0x18c], edi
movzx eax, word [esi]
mov word [ebx + edi*2], ax
test ax, ax
je 0x407abd
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_iswdigit]
cmp edi, 0xe
jbe 0x407a93
xor eax, eax
mov dword [esp], ebx
mov word [ebp + edi*2 - 0x184], ax
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [esp], esi
mov dword [ebp - 0x1b0], eax
call sym._WCMD_skip_leading_spaces
mov ebx, eax
jmp 0x407a00
cmp ax, 0x43
jne 0x407c50
movzx eax, word [ebx + 4]
cmp ax, 0x3a
je 0x407cb0
lea edx, [ebx + 4]
mov dword [ebp - 0x19c], edx
test ax, ax
je 0x408429
mov dword [esp], eax
mov esi, dword [sym.imp.ucrtbase.dll_iswspace]
call esi
test eax, eax
jne 0x408429
mov edi, dword [ebp - 0x19c]
jmp 0x407b42
mov edi, ebx
movzx eax, word [edi + 2]
lea ebx, [edi + 2]
test ax, ax
je 0x407b69
mov dword [esp], eax
call esi
test eax, eax
je 0x407b40
xor eax, eax
add edi, 4
mov word [ebx], ax
mov dword [esp], edi
call sym._WCMD_skip_leading_spaces
mov ebx, eax
test byte [0x425010], 8
je 0x407a00
mov eax, dword [ebp - 0x19c]
shr eax, 0x10
je 0x407dd0
mov esi, dword [ebp - 0x19c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x42613d
test ecx, ecx
jne 0x407de7
cmp word [esi], 0
je 0x407bca
mov eax, esi
lea esi, [esi]
lea esi, [esi]
add ecx, 1
cmp word [eax + ecx*2], 0
jne 0x407bc0
mov eax, 0x224c
mov esi, dword [ebp - 0x19c]
lea edx, [ebp - 0x142]
mov word [ebp - 0x144], ax
lea edi, [ecx - 1]
test ecx, ecx
jle 0x408000
lea eax, [ebp - 0x22]
cmp edx, eax
ja 0x408000
add esi, 2
movzx eax, word [esi - 2]
cmp ax, 0xd
je 0x407f23
ja 0x407e40
cmp ax, 9
je 0x407fa0
cmp ax, 0xa
jne 0x407f40
mov eax, 0x6e5c
add edx, 2
mov ecx, edi
mov word [edx - 2], ax
jmp 0x407be2
add ebx, 4
mov dword [esp], ebx
call sym._WCMD_skip_leading_spaces
mov dword [ebp - 0x1ac], 1
mov ebx, eax
jmp 0x407a00
test byte [0x425010], 1
jne 0x407cd5
mov ecx, dword [ebp - 0x1a4]
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add ebx, 4
mov dword [esp], ebx
call sym._WCMD_skip_leading_spaces
mov dword [ebp - 0x1a8], 1
mov ebx, eax
jmp 0x407a00
lea eax, [ebx + 6]
mov dword [ebp - 0x19c], eax
movzx eax, word [ebx + 6]
jmp 0x407b16
movzx ecx, word [ebx + 6]
lea eax, [ebx + 6]
mov word [ebp - 0x1a0], cx
jmp 0x407a53
mov eax, ebx
shr eax, 0x10
je 0x407d90
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edi, eax
sub esp, 8
mov eax, 0x42613d
test edi, edi
jne 0x407da3
cmp word [ebx], 0
je 0x407d1a
lea esi, [esi]
add edi, 1
cmp word [ebx + edi*2], 0
jne 0x407d10
mov eax, 0x224c
mov dword [ebp - 0x19c], ebx
lea edx, [ebp - 0x142]
lea esi, [ebp - 0x22]
mov word [ebp - 0x144], ax
lea ecx, [edi - 1]
test edi, edi
jle 0x407fd0
cmp edx, esi
ja 0x407fd0
add dword [ebp - 0x19c], 2
mov eax, dword [ebp - 0x19c]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x407e80
ja 0x407e14
cmp ax, 9
je 0x407ef3
cmp ax, 0xa
jne 0x407e93
mov eax, 0x6e5c
add edx, 2
mov edi, ecx
mov word [edx - 2], ax
jmp 0x407d35
movzx ebx, bx
mov dword [esp], 0x426130
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.7
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.bad_parameter:__s_n
mov dword [esp + 8], 0x427d50
mov dword [esp + 4], 0x425010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.9
jmp 0x407c59
movzx eax, word [ebp - 0x19c]
mov dword [esp], 0x426130
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.7
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.answer_list:__s_n
mov dword [esp + 8], 0x427d50
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
jmp 0x407a00
cmp ax, 0x22
je 0x407f10
cmp ax, 0x5c
jne 0x407e93
mov ebx, 0x5c5c
add edx, 2
mov edi, ecx
mov word [edx - 2], bx
jmp 0x407d35
cmp ax, 0x22
je 0x407fb3
cmp ax, 0x5c
jne 0x407f40
mov eax, 0x5c5c
add edx, 2
mov ecx, edi
mov word [edx - 2], ax
jmp 0x407be2
mov dword [ebp - 0x1a4], 0
jmp 0x4079bf
mov eax, 0x725c
add edx, 2
mov edi, ecx
mov word [edx - 2], ax
jmp 0x407d35
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x408337
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefWCMD_choice]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefWCMD_choice]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefWCMD_choice]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefWCMD_choice]
mov byte [edx - 1], al
mov edi, ecx
mov byte [edx - 2], bl
jmp 0x407d35
mov eax, 0x745c
add edx, 2
mov edi, ecx
mov word [edx - 2], ax
jmp 0x407d35
mov edi, 0x225c
add edx, 2
mov word [edx - 2], di
mov edi, ecx
jmp 0x407d35
mov eax, 0x725c
add edx, 2
mov ecx, edi
mov word [edx - 2], ax
jmp 0x407be2
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x408343
mov ecx, eax
mov byte [edx], 0x5c
add edx, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdefWCMD_choice]
mov byte [edx - 4], cl
mov ecx, eax
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefWCMD_choice]
mov byte [edx - 3], cl
mov ecx, eax
and eax, 0xf
shr cx, 4
movzx eax, byte [eax + str.0123456789abcdefWCMD_choice]
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefWCMD_choice]
mov byte [edx - 1], al
mov byte [edx - 2], cl
mov ecx, edi
jmp 0x407be2
mov eax, 0x745c
add edx, 2
mov ecx, edi
mov word [edx - 2], ax
jmp 0x407be2
mov eax, 0x225c
add edx, 2
mov ecx, edi
mov word [edx - 2], ax
jmp 0x407be2
mov byte [edx], 0x22
lea eax, [edx + 1]
test ecx, ecx
jle 0x407fea
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
jmp 0x407da3
mov byte [edx], 0x22
lea eax, [edx + 1]
test edi, edi
jle 0x40801a
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
jmp 0x407de7
mov esi, 2
jmp 0x4079a1
mov eax, dword [ebp - 0x1b0]
test eax, eax
jne 0x40834f
mov eax, dword [ebp - 0x1b8]
test eax, eax
jne 0x408523
mov eax, dword [ebp - 0x19c]
test eax, eax
je 0x4085a3
cmp word [ebx], 0
jne 0x408516
mov eax, dword [ebp - 0x1a8]
test eax, eax
je 0x4084c2
mov edi, dword [ebp - 0x1ac]
lea ebx, [ebp - 0x184]
test edi, edi
je 0x408467
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 0x1a0], eax
jmp 0x4080af
mov dword [esp], 0x426b8a
call sym._WCMD_output_asis
xor ecx, ecx
mov dword [esp], 0xfffffff6
mov eax, dword [ebp - 0x1b4]
mov word [ebp - 0x182], cx
call eax
lea edx, [ebp - 0x18c]
sub esp, 4
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._WCMD_ReadFile
test eax, eax
je 0x40839a
mov edx, dword [ebp - 0x1a8]
movzx eax, word [ebp - 0x184]
test edx, edx
jne 0x408114
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_towupper]
mov word [ebp - 0x184], ax
movzx eax, ax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x19c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
jne 0x4083d3
test byte [0x425010], 8
je 0x4080a3
mov eax, dword [ebp - 0x1a0]
test eax, eax
je 0x408313
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edi, eax
sub esp, 8
mov eax, 0x42613d
test edi, edi
jne 0x408245
cmp word [ebp - 0x184], 0
je 0x40818a
lea esi, [esi]
nop
add edi, 1
cmp word [ebx + edi*2], 0
jne 0x408180
mov eax, 0x224c
mov dword [ebp - 0x1ac], ebx
lea edx, [ebp - 0x142]
mov ecx, ebx
mov word [ebp - 0x144], ax
lea esi, [edi - 1]
test edi, edi
jle 0x408214
lea eax, [ebp - 0x22]
cmp edx, eax
ja 0x408214
add ecx, 2
movzx eax, word [ecx - 2]
cmp ax, 0xd
je 0x408272
ja 0x4081f0
cmp ax, 9
je 0x4082e5
cmp ax, 0xa
jne 0x408285
mov eax, 0x6e5c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x4081a4
cmp ax, 0x22
je 0x408300
cmp ax, 0x5c
jne 0x408285
mov ebx, 0x5c5c
add edx, 2
mov edi, esi
mov word [edx - 2], bx
jmp 0x4081a4
mov ebx, dword [ebp - 0x1ac]
mov byte [edx], 0x22
lea eax, [edx + 1]
test esi, esi
jle 0x408234
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.key_not_allowed:__s_n
mov dword [esp + 8], 0x427d50
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
jmp 0x4080a3
mov eax, 0x725c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x4081a4
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x40832b
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefWCMD_choice]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefWCMD_choice]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefWCMD_choice]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefWCMD_choice]
mov byte [edx - 1], al
mov edi, esi
mov byte [edx - 2], bl
jmp 0x4081a4
mov eax, 0x745c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x4081a4
mov edi, 0x225c
add edx, 2
mov word [edx - 2], di
mov edi, esi
jmp 0x4081a4
movzx eax, bx
mov dword [esp], 0x426130
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.7
jmp 0x408245
mov byte [edx], al
mov edi, esi
add edx, 1
jmp 0x4081a4
mov byte [edx], al
mov edi, ecx
add edx, 1
jmp 0x407d35
mov byte [edx], al
mov ecx, edi
add edx, 1
jmp 0x407be2
test byte [0x425010], 1
je 0x40804e
mov eax, dword [ebp - 0x1b0]
mov dword [esp + 0xc], str.timeout_not_supported:__c__ld_n
mov dword [esp + 8], 0x427d50
mov dword [esp + 0x14], eax
movzx eax, word [ebp - 0x1a0]
mov dword [esp + 4], 0x425010
mov dword [esp + 0x10], eax
mov dword [esp], 0
call sym._wine_dbg_log.constprop.9
jmp 0x40804e
mov edx, dword [ebp - 0x1a4]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [0x437470], 0
sub esp, 0xc
jmp 0x407c83
mov dword [esp], ebx
mov esi, eax
call sym._WCMD_output_asis
mov dword [esp], 0x426120
call sym._WCMD_output_asis
mov eax, dword [ebp - 0x1b8]
test eax, eax
jne 0x408636
sub esi, dword [ebp - 0x19c]
sar esi, 1
lea eax, [esi + 1]
mov dword [0x437470], eax
test byte [0x425010], 8
jne 0x408609
mov edx, dword [ebp - 0x1a4]
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
jmp 0x407c69
test byte [0x425010], 1
je 0x408414
mov eax, dword [ebp - 0x19c]
call sym._wine_dbgstr_wn.constprop.5
mov dword [esp + 0xc], str.bad_parameter__s_for__C_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x427d50
mov dword [esp + 4], 0x425010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.9
jmp 0x408414
mov dword [esp], 0x426b5a
xor esi, esi
call sym._WCMD_output_asis
mov word [ebp - 0x182], si
mov esi, dword [ebp - 0x19c]
add esi, 2
movzx eax, word [esi - 2]
mov word [ebp - 0x184], ax
test ax, ax
je 0x4084b1
mov dword [esp], ebx
call sym._WCMD_output_asis
cmp word [esi], 0
je 0x408482
mov dword [esp], 0x426b5e
call sym._WCMD_output_asis
jmp 0x408482
mov dword [esp], 0x426b62
call sym._WCMD_output_asis
jmp 0x408096
mov eax, dword [ebp - 0x19c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsupr]
test byte [0x425010], 8
je 0x408082
mov eax, dword [ebp - 0x19c]
call sym._wine_dbgstr_wn.constprop.5
mov dword [esp + 0xc], str.case_insensitive_answer_list:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x427d50
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
jmp 0x408082
mov dword [esp], ebx
call sym._WCMD_output_asis
jmp 0x408074
mov dword [esp], 0xfffffff6
mov eax, dword [ebp - 0x1b4]
call eax
sub esp, 4
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetConsoleMode]
sub esp, 8
jmp 0x40805c
test byte [0x425010], 1
je 0x408414
add eax, 2
call sym._wine_dbgstr_wn.constprop.5
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.bad_option__s_for__T_n
mov dword [esp + 8], 0x427d50
mov dword [esp + 4], 0x425010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.9
jmp 0x408414
mov eax, 0x426ac3
test byte [0x425010], 1
jne 0x408563
jmp 0x408414
lea esi, [ebp - 0x164]
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], esi
mov dword [esp + 4], 0x3ea
mov dword [esp], 0
call sym._LoadStringW_16
lea eax, [ebp - 0x162]
sub esp, 0x10
mov dword [esp + 0xc], 0xf
mov dword [esp + 8], eax
mov dword [esp + 4], 0x3eb
mov dword [esp], 0
call sym._LoadStringW_16
xor eax, eax
mov dword [ebp - 0x19c], esi
sub esp, 0x10
mov word [ebp - 0x160], ax
jmp 0x40806a
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.answer:__ld_n
mov dword [esp + 8], 0x427d50
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
jmp 0x408414
mov ebx, dword [ebp - 0x188]
mov dword [esp], 0xfffffff6
mov eax, dword [ebp - 0x1b4]
call eax
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetConsoleMode]
sub esp, 8
jmp 0x4083f7