Function at 0x4065b1
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xdd0
mov eax, 0x438db0
call fcn.0043869b
mov dword [ebp - 0xd84], edx
mov esi, ecx
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov edi, ecx
mov dword [ebp - 0xdb8], ebx
mov dword [ebp - 0xdac], edi
mov byte [ebp - 0xd4d], cl
mov dword [ebp - 0xd74], ecx
mov byte [ebp - 0xd4e], cl
mov byte [ebp - 0xd4f], cl
mov byte [ebp - 0xd70], cl
mov dword [ebp - 0xd5c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xdc0], ecx
mov dword [ebp - 0xdbc], ecx
mov dword [ebp - 0xd60], ecx
mov dword [ebp - 0xd54], ecx
mov dword [ebp - 0xd68], ecx
mov dword [ebp - 0xd64], ecx
mov dword [ebp - 0xd94], ecx
mov dword [ebp - 0xd98], ecx
mov dword [ebp - 0xd8c], ecx
mov dword [ebp - 0xda8], ecx
mov byte [ebp - 4], 0xa
xor eax, eax
mov word [ebp - 0x50], ax
mov edx, 0x851
mov word [ebp - 0xdd0], ax
lea eax, [ebp - 0xddc]
push eax
push str.Start_Verb_Registration:
mov dword [ebp - 0xd90], ecx
mov dword [ebp - 0xdc4], ecx
mov dword [ebp - 0xd88], ecx
mov ecx, 0x170b011
push 0x64
mov dword [ebp - 0xdb0], 0x28
mov dword [ebp - 0xdcc], 0x208
mov dword [ebp - method.Mso::Logging::StructuredObject_wchar_t_const___1_.virtual_0], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
mov dword [ebp - 0xdd8], str.Param
mov dword [ebp - 0xdd4], ebx
call fcn.00401c4f
mov edx, str.print
mov ecx, ebx
call fcn.0040baaf
test eax, eax
mov dword [ebp - 0xd9c], eax
lea eax, [ebp - 0xda4]
mov edx, str.shell
push eax
lea eax, [ebp - 0xd94]
sete byte [ebp - 0xda0]
push eax
sub esp, 0x14
mov ecx, esi
call fcn.0040c24b
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x407125
mov ecx, dword [ebp - 0xd94]
lea eax, [ebp - 0xda4]
push eax
lea eax, [ebp - 0xd5c]
mov edx, ebx
push eax
sub esp, 0x14
call fcn.0040c24b
test eax, eax
jne 0x407125
mov ecx, dword [ebp - 0xd5c]
lea eax, [ebp - 0xda4]
push eax
lea eax, [ebp - 0xd68]
mov edx, str.command
push eax
sub esp, 0x14
call fcn.0040c24b
test eax, eax
jne 0x407125
mov ecx, dword [ebp - 0xd68]
lea eax, [ebp - 0xd90]
push eax
lea eax, [ebp - 0xd88]
xor edx, edx
push eax
call fcn.004096fb
test eax, eax
je 0x407113
mov ebx, dword [ebp - 0xd88]
test ebx, ebx
je 0x4067fe
mov ecx, str.msohtmed.exe
call fcn.0040b9b7
push 0x6d
dec eax
mov ecx, ebx
pop edx
mov dword [ebp - 0xd90], eax
call fcn.0040ba21
mov edi, eax
test edi, edi
je 0x4067c7
push dword [ebp - 0xd90]
lea ebx, [edi + 2]
mov edx, 0x43d306
mov ecx, ebx
call fcn.0040bb72
test eax, eax
jne 0x4067c1
cmp word [ebx], ax
je 0x4067cb
push 0x6d
pop edx
mov ecx, ebx
call fcn.0040ba21
mov edi, eax
test edi, edi
jne 0x406793
mov ebx, dword [ebp - 0xd88]
xor eax, eax
jmp 0x406802
mov eax, dword [ebp - 0xda0]
mov dword [ebp - 0xda0], eax
xor edi, edi
mov ebx, dword [ebp - 0xd88]
cmp word [ebx], di
je 0x406afc
mov ecx, str.fpxpress.exe
call fcn.0040b9b7
dec eax
mov dword [ebp - 0xd78], eax
jmp 0x406a92
xor eax, eax
mov edi, eax
test edi, edi
je 0x4067d7
mov ecx, ebx
mov byte [ebp - 0xd4d], al
mov dword [ebp - 0xd6c], eax
mov dword [ebp - 0xdb4], eax
mov dword [ebp - 0xd58], eax
mov dword [ebp - 0xd7c], eax
call fcn.00405a58
mov ebx, eax
lea ecx, [ebp - 0xd4c]
push 2
mov dword [ebp - 0xd78], ebx
call fcn.00409f33
test eax, eax
je 0x406a59
lea edx, [ebp - 0xd4c]
mov ecx, ebx
call fcn.0040baaf
test eax, eax
je 0x406863
xor eax, eax
lea ebx, [eax + 1]
jmp 0x406a67
lea eax, [ebp - 0xd6c]
mov ebx, 0x20019
push eax
push ebx
push ecx
mov edx, 0x43d2e0
mov ecx, Ordinal_1
call fcn.0040c1f1
test eax, eax
jne 0x406a59
lea eax, [ebp - 0xdb4]
mov edx, str.42042206_2D85_11D3_8CFF_005004838597
push eax
push ebx
push ecx
mov ecx, dword [ebp - 0xd6c]
call fcn.0040c1f1
test eax, eax
jne 0x406a59
lea eax, [ebp - 0xd58]
mov edx, str.Version
push eax
push ebx
push ecx
mov ecx, dword [ebp - 0xdb4]
call fcn.0040c1f1
test eax, eax
jne 0x406a59
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0xdd4]
push eax
xor ecx, ecx
lea eax, [ebp - 0xd90]
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x28]
mov edi, ecx
push eax
push ecx
jmp 0x4069b7
cmp dword [ebp - 0xd7c], 0
je 0x406900
push dword [ebp - 0xd7c]
call esi
xor eax, eax
lea edx, [ebp - 0x28]
mov dword [ebp - 0xd7c], eax
lea eax, [ebp - 0xd7c]
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0xd58]
call fcn.0040c1f1
test eax, eax
jne 0x40699e
movzx eax, byte [ebp - 0x52c]
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0xdc8], 0x208
inc edx
cmp dword [ebp - 0xd80], edx
cmove eax, ecx
mov byte [ebp - 0x52c], al
lea eax, [ebp - 0xdc8]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0xd80]
push eax
xor eax, eax
push eax
push eax
push dword [ebp - 0xd7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40699e
mov ecx, dword [ebp - 0xd78]
lea edx, [ebp - 0x52c]
call fcn.0040baaf
test eax, eax
je 0x40699e
push 0xa
pop edx
lea ecx, [ebp - 0x28]
call fcn.0040bec7
cmp eax, 0x10
jae 0x406a52
lea eax, [ebp - 0xdd4]
inc edi
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0xd90]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
push dword [ebp - 0xd58]
mov dword [ebp - 0xd90], 0xa
call ebx
test eax, eax
je 0x4068ef
mov bl, byte [ebp - 0xd4d]
mov eax, dword [ebp - 0xda0]
mov dword [ebp - 0xda0], eax
xor eax, eax
inc eax
xor bl, al
cmp dword [ebp - 0xd7c], 0
mov byte [ebp - 0xd4d], bl
je 0x4069ff
push dword [ebp - 0xd7c]
call esi
xor edi, edi
mov dword [ebp - 0xd7c], edi
cmp dword [ebp - 0xd58], edi
je 0x406a17
push dword [ebp - 0xd58]
call esi
mov dword [ebp - 0xd58], edi
cmp dword [ebp - 0xdb4], edi
je 0x406a2d
push dword [ebp - 0xdb4]
call esi
mov dword [ebp - 0xdb4], edi
cmp dword [ebp - 0xd6c], edi
je 0x4067d9
push dword [ebp - 0xd6c]
call esi
mov byte [ebp - 0xd4d], bl
jmp 0x4067d9
xor eax, eax
lea ebx, [eax + 1]
jmp 0x406a5f
mov bl, byte [ebp - 0xd4d]
test bl, bl
je 0x4069d7
xor eax, eax
mov byte [ebp - 0xda0], al
jmp 0x4069e3
push dword [ebp - 0xd78]
lea ebx, [edi + 2]
mov edx, 0x43c98e
mov ecx, ebx
call fcn.0040bb72
test eax, eax
jne 0x406aa2
cmp word [ebx], ax
je 0x406aa6
push 0x66
pop edx
mov ecx, ebx
call fcn.0040ba21
mov edi, eax
test edi, edi
jne 0x406a74
test edi, edi
jne 0x406afc
mov ecx, str.winword.exe
call fcn.0040b9b7
mov ecx, dword [ebp - 0xd88]
dec eax
mov dword [ebp - 0xd78], eax
jmp 0x406adf
push dword [ebp - 0xd78]
lea ebx, [edi + 2]
mov edx, 0x43c9aa
mov ecx, ebx
call fcn.0040bb72
test eax, eax
jne 0x406aed
cmp word [ebx], ax
je 0x406b05
mov ecx, ebx
push 0x77
pop edx
call fcn.0040ba21
mov edi, eax
test edi, edi
jne 0x406abf
test edi, edi
je 0x406b05
xor eax, eax
inc eax
mov byte [ebp - 0xd4d], al
jmp 0x406b22
xor eax, eax
inc eax
mov byte [ebp - 0xd4d], al
cmp dword [ebp + 0x10], 0
je 0x406b22
cmp dword [ebp - 0xd9c], 0
jne 0x406b22
cmp dword [ebp - 0xd84], 0
mov edi, str.SharePointDesigner.Editor.Document
je 0x406b27
mov edi, str.Word.Document
xor eax, eax
mov ebx, eax
push 0x104
mov edx, edi
lea ecx, [ebp - 0x734]
call fcn.0040bc07
push 0x104
mov edx, 0x43b76c
lea ecx, [ebp - 0x734]
call fcn.0040bc56
xor eax, eax
lea edx, [ebp - 0x734]
mov dword [ebp - 0xd58], eax
lea eax, [ebp - 0xd58]
push eax
push 0x20019
push ecx
mov ecx, Ordinal_1
call fcn.0040c1f1
test eax, eax
jne 0x406c54
movzx eax, byte [ebp - 0x11c]
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0xd78], 0xc8
inc edx
cmp dword [ebp - 0xd80], edx
cmove eax, ecx
mov byte [ebp - 0x11c], al
lea eax, [ebp - 0xd78]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0xd80]
push eax
xor eax, eax
push eax
push eax
push dword [ebp - 0xd58]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406c54
cmp dword [ebp - 0xd9c], eax
je 0x406bf3
push 0x64
mov edx, str._shell_
lea ecx, [ebp - 0x11c]
call fcn.0040bc56
mov edx, dword [ebp - 0xdb8]
jmp 0x406bf8
mov edx, str._shellopen
push 0x64
lea ecx, [ebp - 0x11c]
call fcn.0040bc56
cmp dword [ebp - 0xd64], 0
je 0x406c16
push dword [ebp - 0xd64]
call esi
xor eax, eax
lea edx, [ebp - 0x11c]
mov dword [ebp - 0xd64], eax
lea eax, [ebp - 0xd64]
push eax
push 0x20019
push ecx
mov ecx, Ordinal_1
call fcn.0040c1f1
mov ecx, dword [ebp - 0xd70]
test eax, eax
push 1
movzx ecx, cl
pop eax
cmove ecx, eax
mov dword [ebp - 0xd70], ecx
jmp 0x406c5a
mov ecx, dword [ebp - 0xd70]
test cl, cl
jne 0x406c7d
test ebx, ebx
jne 0x406c7d
mov eax, str.SharePointDesigner.Editor.Document
cmp edi, eax
jne 0x406c72
mov edi, str.Word.Document
jmp 0x406c7d
cmp dword [ebp - 0xd84], 0
jne 0x406ca2
mov edi, eax
cmp dword [ebp - 0xd58], 0
je 0x406c8e
push dword [ebp - 0xd58]
call esi
xor eax, eax
inc ebx
mov dword [ebp - 0xd58], eax
cmp ebx, 2
jb 0x406b2b
jmp 0x406cb3
cmp dword [ebp - 0xd58], 0
je 0x406cb3
push dword [ebp - 0xd58]
call esi
push dword [ebp - 0xd84]
lea edx, [ebp - 0xd8c]
lea ecx, [ebp - 0xd98]
call fcn.004060ed
mov ebx, dword [ebp - 0xda0]
test bl, bl
je 0x406dca
cmp byte [ebp - 0xd4d], 0
mov edi, dword [ebp - 0xdb8]
je 0x406db9
xor eax, eax
mov edx, edi
mov dword [ebp - 0xd6c], eax
lea eax, [ebp - 0xd6c]
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0xd98]
call fcn.0040c1f1
test eax, eax
jne 0x406da8
mov dword [ebp - 0xd70], eax
mov edx, 0x43c9d8
lea eax, [ebp - 0xd70]
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0xd6c]
call fcn.0040c1f1
test eax, eax
jne 0x406d97
movzx eax, byte [ebp - 0xb44]
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0xd78], 0x410
inc edx
cmp dword [ebp - 0xd80], edx
cmove eax, ecx
mov byte [ebp - 0xb44], al
lea eax, [ebp - 0xd78]
push eax
lea eax, [ebp - 0xb44]
push eax
lea eax, [ebp - 0xd80]
push eax
xor eax, eax
push eax
push eax
push dword [ebp - 0xd70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406d97
cmp word [ebp - 0xb44], ax
movzx ebx, bl
cmovne ebx, eax
cmp dword [ebp - 0xd70], 0
je 0x406da8
push dword [ebp - 0xd70]
call esi
cmp dword [ebp - 0xd6c], 0
je 0x406db9
push dword [ebp - 0xd6c]
call esi
test bl, bl
je 0x406dca
mov ecx, dword [ebp - 0xd98]
mov edx, edi
call fcn.0040956d
mov edi, dword [ebp - 0xdb8]
lea eax, [ebp - 0xda4]
mov ecx, dword [ebp - 0xd98]
mov edx, edi
push eax
lea eax, [ebp - 0xd60]
push eax
sub esp, 0x14
call fcn.0040c24b
test eax, eax
jne 0x40710d
lea eax, [ebp - 0xd54]
mov edx, edi
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0xd8c]
call fcn.0040c1f1
test eax, eax
jne 0x40727a
lea eax, [ebp - 0xdc0]
mov edx, str.command
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0xd54]
call fcn.0040c1f1
test eax, eax
jne 0x40727a
test bl, bl
jne 0x40721e
lea eax, [ebp - 0xda8]
mov edx, 0x43c9d8
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0xd60]
call fcn.0040c1f1
test eax, eax
jne 0x40723d
movzx eax, byte [ebp - 0x324]
xor edx, edx
xor ecx, ecx
inc edx
cmp dword [ebp - 0xd80], edx
cmove eax, ecx
xor ebx, ebx
mov byte [ebp - 0x324], al
lea eax, [ebp - 0xdcc]
push eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0xd80]
push eax
push ebx
push ebx
push dword [ebp - 0xda8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40723f
cmp word [ebp - 0x324], bx
je 0x40723f
mov al, bl
cmp dword [ebp - 0xd9c], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jne 0x406f44
cmp dword [ebp - 0xd74], 0
jne 0x406edd
test al, al
je 0x406f44
push dword [ebp - 0xd84]
mov ecx, dword [ebp - 0xd5c]
lea eax, [ebp - 0xdb0]
push eax
lea eax, [ebp - 0x50]
mov edx, edi
push eax
xor eax, eax
push eax
call fcn.00406289
cmp dword [ebp - 0xd74], 0
je 0x406f21
push dword [ebp - 0xdb0]
lea eax, [ebp - 0x50]
push eax
xor eax, eax
inc eax
push eax
xor eax, eax
push eax
push eax
push dword [ebp - 0xd60]
call ebx
cmp byte [ebp - 0xd4e], 0
je 0x406f44
push dword [ebp - 0xdb0]
lea eax, [ebp - 0x50]
push eax
xor eax, eax
inc eax
push eax
xor eax, eax
push eax
push eax
push dword [ebp - 0xd54]
call ebx
cmp byte [ebp - 0xd4f], 0
je 0x406fba
xor eax, eax
mov dword [ebp - 0xd74], eax
mov ebx, dword [ebp - 0xd84]
lea eax, [ebp - 0xd74]
push eax
push 0x2001f
mov eax, str.SOFTWAREMicrosoftSharedHTML
mov byte [ebp - 4], 0xb
test ebx, ebx
mov edx, str.SOFTWAREMicrosoftSharedMHTML
push ecx
cmove edx, eax
mov ecx, reloc.AppVIsvSubsystems32.dll_Ordinal_1
call fcn.0040c1f1
test eax, eax
jne 0x406f99
mov ecx, dword [ebp - 0xd74]
mov edx, str.Default_Editor
call fcn.0040956d
mov edx, ebx
mov ecx, reloc.AppVIsvSubsystems32.dll_Ordinal_1
call fcn.00407f1a
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0xd74], 0
je 0x406fba
push dword [ebp - 0xd74]
call esi
xor ebx, ebx
lea ecx, [ebp - 0xdc4]
cmp dword [ebp - 0xd9c], ebx
setne bl
mov edx, ebx
call fcn.004064a7
cmp word [ebp - 0x50], 0
jne 0x406ff8
push dword [ebp - 0xd84]
mov ecx, dword [ebp - 0xd5c]
lea eax, [ebp - 0xdb0]
push eax
lea eax, [ebp - 0x50]
mov edx, edi
push eax
push ebx
call fcn.00406289
cmp dword [ebp - 0xd5c], 0
je 0x407009
push dword [ebp - 0xd5c]
call esi
xor ebx, ebx
mov dword [ebp - 0xd5c], ebx
cmp dword [ebp - 0xd68], ebx
je 0x407021
push dword [ebp - 0xd68]
call esi
mov ecx, dword [ebp - 0xd94]
mov edx, edi
mov dword [ebp - 0xd68], ebx
call fcn.0040956d
mov ecx, dword [ebp - 0xd94]
lea eax, [ebp - 0xda4]
push eax
lea eax, [ebp - 0xd5c]
mov edx, edi
push eax
sub esp, 0x14
call fcn.0040c24b
mov edi, dword [ebp - 0xdc4]
test eax, eax
jne 0x407101
push dword [ebp - 0xdb0]
lea eax, [ebp - 0x50]
push eax
xor eax, eax
inc eax
push eax
push ebx
push ebx
push dword [ebp - 0xd5c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call ebx
test eax, eax
jne 0x407101
mov ecx, dword [ebp - 0xd5c]
lea eax, [ebp - 0xda4]
push eax
lea eax, [ebp - 0xd68]
mov edx, str.command
push eax
sub esp, 0x14
call fcn.0040c24b
test eax, eax
jne 0x407101
mov eax, edi
xor edx, edx
mov ecx, edx
test eax, eax
je 0x4070bf
cmp word [edi], dx
je 0x4070bf
lea eax, [eax + 2]
inc ecx
cmp word [eax], dx
jne 0x4070b6
lea eax, [ecx + ecx]
push eax
push edi
xor eax, eax
inc eax
push eax
push edx
push edx
push dword [ebp - 0xd68]
call ebx
test eax, eax
jne 0x407101
cmp dword [ebp - 0xd9c], eax
jne 0x4070f8
push dword [ebp - 0xd84]
mov edx, dword [ebp - 0xd60]
mov ecx, 0x80000002
call fcn.004078b9
test eax, eax
je 0x407101
xor eax, eax
inc eax
mov dword [ebp - 0xdac], eax
test edi, edi
je 0x40710d
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov edi, dword [ebp - 0xdac]
mov eax, dword [ebp - 0xd88]
test eax, eax
je 0x407125
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
cmp dword [ebp - 0xda8], 0
je 0x407136
push dword [ebp - 0xda8]
call esi
xor ebx, ebx
mov dword [ebp - 0xda8], ebx
cmp dword [ebp - 0xd8c], ebx
je 0x40714e
push dword [ebp - 0xd8c]
call esi
mov dword [ebp - 0xd8c], ebx
cmp dword [ebp - 0xd98], ebx
je 0x407164
push dword [ebp - 0xd98]
call esi
mov dword [ebp - 0xd98], ebx
cmp dword [ebp - 0xd94], ebx
je 0x40717a
push dword [ebp - 0xd94]
call esi
mov dword [ebp - 0xd94], ebx
cmp dword [ebp - 0xd64], ebx
je 0x407190
push dword [ebp - 0xd64]
call esi
mov dword [ebp - 0xd64], ebx
cmp dword [ebp - 0xd68], ebx
je 0x4071a6
push dword [ebp - 0xd68]
call esi
mov dword [ebp - 0xd68], ebx
cmp dword [ebp - 0xd54], ebx
je 0x4071bc
push dword [ebp - 0xd54]
call esi
mov dword [ebp - 0xd54], ebx
cmp dword [ebp - 0xd60], ebx
je 0x4071d2
push dword [ebp - 0xd60]
call esi
mov dword [ebp - 0xd60], ebx
cmp dword [ebp - 0xdbc], ebx
je 0x4071e8
push dword [ebp - 0xdbc]
call esi
mov dword [ebp - 0xdbc], ebx
cmp dword [ebp - 0xdc0], ebx
je 0x4071fe
push dword [ebp - 0xdc0]
call esi
mov dword [ebp - 0xdc0], ebx
cmp dword [ebp - 0xd5c], ebx
je 0x407214
push dword [ebp - 0xd5c]
call esi
mov eax, edi
call fcn.00438650
ret 0xc
cmp byte [ebp - 0xd4d], 0
jne 0x40723d
mov edx, dword [ebp - 0xd60]
xor eax, eax
mov ecx, dword [ebp - 0xd5c]
push eax
call fcn.004091be
jmp 0x407268
xor ebx, ebx
mov eax, dword [ebp - 0xd64]
test eax, eax
je 0x407268
mov ecx, dword [ebp - 0xd54]
mov edx, dword [ebp - 0xd60]
cmovne ecx, eax
push ebx
call fcn.004091be
mov dword [ebp - 0xd74], 1
mov byte [ebp - 0xd4f], 1
mov al, byte [ebp - 0xd4e]
jmp 0x406ec1
cmp dword [ebp - 0xd54], 0
je 0x4072a1
mov ecx, dword [ebp - 0xd8c]
mov edx, edi
call fcn.0040956d
cmp dword [ebp - 0xd54], 0
je 0x4072a1
push dword [ebp - 0xd54]
call esi
mov ecx, dword [ebp - 0xd8c]
xor eax, eax
mov dword [ebp - 0xd54], eax
mov edx, edi
lea eax, [ebp - 0xda4]
push eax
lea eax, [ebp - 0xd54]
push eax
sub esp, 0x14
call fcn.0040c24b
test eax, eax
jne 0x40710d
lea eax, [ebp - 0xdbc]
mov edx, str.command
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0xd60]
call fcn.0040c1f1
test eax, eax
jne 0x40731e
test bl, bl
jne 0x407322
mov ecx, dword [ebp - 0xd64]
test ecx, ecx
je 0x40726f
mov edx, dword [ebp - 0xd54]
push eax
call fcn.004091be
xor ecx, ecx
inc ecx
mov al, cl
mov byte [ebp - 0xd4e], al
jmp 0x406ec1
test bl, bl
je 0x40732b
cmp byte [ebp - 0xd4d], 0
je 0x407362
cmp dword [ebp - 0xd9c], 0
jne 0x407362
mov ecx, dword [ebp - 0xd64]
test ecx, ecx
je 0x407379
push dword [ebp - 0xd54]
mov edx, dword [ebp - 0xd60]
call fcn.004091be
xor ecx, ecx
inc ecx
mov al, cl
mov byte [ebp - 0xd4e], cl
mov dword [ebp - 0xd74], ecx
jmp 0x407382
push dword [ebp - 0xd54]
mov edx, dword [ebp - 0xd60]
mov ecx, dword [ebp - 0xd5c]
call fcn.004091be
mov al, byte [ebp - 0xd4e]
xor ecx, ecx
inc ecx
mov byte [ebp - 0xd4f], cl
jmp 0x406ec1