Function at 0x459964
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e0
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 8
push edi
mov dword [ebp - 0x1d4], edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1d8], ebx
cmp eax, 0x459
jg case.0x459520.5
je 0x459982
lea ecx, [eax - 1]
cmp ecx, 7
ja case.0x459520.5
jmp dword [ecx*4 + 0x459bf0]
test ebx, ebx
je 0x45975f
mov esi, dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebx + 0x434]
push 0x51
push eax
push 0x462
push edi
call esi
push 0x51
lea eax, [ebx + 0x4d6]
push eax
push 0x464
push edi
call esi
mov al, byte [ebx + 0x18]
xorps xmm0, xmm0
mov byte [ebp - 0x28], 0
mov word [ebp - 7], 0
mov byte [ebp - 5], 0
mov dword [ebp - 0x1d4], 0
movdqu xmmword [ebp - 0x27], xmm0
movdqu xmmword [ebp - 0x17], xmm0
cmp al, 1
jne 0x4595bf
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0x459
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
mov al, byte [ebx + 0x20]
cmp al, 2
je 0x45964a
cmp al, 3
je 0x45964a
cmp al, 1
lea eax, [ebx + 0x24]
push 1
jne 0x4595b8
push 0x18
jmp 0x459651
push 0
jmp 0x459651
cmp al, 2
jne 0x45966d
mov al, byte [ebx + 0x20]
cmp al, 2
je 0x459616
cmp al, 3
je 0x459616
mov eax, 0x1e
lea ebx, [ebp - 0x28]
xor esi, esi
mov dword [ebp - 0x1d4], eax
push eax
push ebx
lea eax, [esi + 0x45a]
push eax
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
mov eax, dword [ebp - 0x1d4]
inc esi
sub eax, 4
add ebx, 4
mov dword [ebp - 0x1d4], eax
cmp esi, 6
jb 0x4595e2
mov ebx, dword [ebp - 0x1d8]
push 1
push 0x18
jmp 0x45964e
xor esi, esi
xor ebx, ebx
lea ebx, [ebx]
mov eax, 0x24
sub eax, esi
push eax
lea eax, [ebp - 0x28]
add eax, esi
push eax
lea eax, [ebx + 0x45a]
push eax
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
inc ebx
add esi, eax
cmp ebx, 7
jl 0x459620
mov ebx, dword [ebp - 0x1d8]
push 1
push 0x1d
lea eax, [ebx + 0x24]
push 0
push 0x104
push eax
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00458c00
add esp, 0x1c
mov dword [ebp - 0x1d4], eax
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0xa8]
push 0x40
push eax
push 0x258
push dword [ebx]
call esi
push 0x80
lea eax, [ebp - 0x1a8]
push eax
push 0x2bf
push dword [ebx]
call esi
cmp dword [ebp - 0x1d4], 0
jne 0x459748
movdqu xmm0, xmmword [ebx + 8]
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x28]
push eax
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.004087a3
mov esi, eax
lea eax, [ebp - 0x28]
push esi
push eax
push str.SNV3GetDlg_OnCommand____SerialNumber_Validate__s____d
call fcn.0045f820
add esp, 0xc
test esi, esi
jne 0x459748
movzx eax, byte [ebx + 0x1e]
push eax
movzx eax, byte [ebx + 0x1f]
push eax
movzx eax, byte [ebp - 0x1ce]
push eax
push str.SNV3GetDlg_OnCommand____ProductCode_d_ProductLanguage_d_ProductVersion_d
call fcn.0045f820
mov al, byte [ebx + 0x1d]
add esp, 0x10
test al, al
je 0x45970b
cmp byte [ebp - 0x1ce], al
jne 0x459748
mov al, byte [ebx + 0x1f]
test al, al
je 0x45971a
cmp byte [ebp - 0x1cd], al
jne 0x459748
mov al, byte [ebx + 0x1e]
test al, al
je 0x459729
cmp byte [ebp - 0x1d0], al
jne 0x459748
push 1
push edi
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046984a
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x1a8]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046984a
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x45975f
mov esi, dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebx + 0x434]
push 0x51
push eax
push 0x462
push edi
call esi
push 0x51
lea eax, [ebx + 0x4d6]
push eax
push 0x464
push edi
call esi
xor eax, eax
mov byte [ebp - 0x28], 0
cmp byte [ebx + 0x20], 2
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x27], xmm0
sete al
mov word [ebp - 7], 0
push eax
push 0
push 0
push 0x24
lea eax, [ebp - 0x28]
mov byte [ebp - 5], 0
push eax
lea eax, [ebx + 0x128]
push 0
push eax
movdqu xmmword [ebp - 0x17], xmm0
call fcn.00458c00
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
add esp, 0x1c
mov edi, eax
lea eax, [ebp - 0xa8]
push 0x40
push eax
push 0x258
push dword [ebx]
call esi
push 0x80
lea eax, [ebp - 0x1a8]
push eax
push 0x2bf
push dword [ebx]
call esi
test edi, edi
jne 0x4598a3
movdqu xmm0, xmmword [ebx + 8]
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x28]
push eax
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.004087a3
mov esi, eax
lea eax, [ebp - 0x28]
push esi
push eax
push str.SNV3GetDlg_OnCommand____SerialNumber_Validate__s____d
call fcn.0045f820
add esp, 0xc
test esi, esi
jne 0x4598a3
mov al, byte [ebx + 0x1d]
test al, al
je 0x45985d
cmp byte [ebp - 0x1ce], al
jne 0x4598a3
mov al, byte [ebx + 0x1f]
test al, al
je 0x45986c
cmp byte [ebp - 0x1cd], al
jne 0x4598a3
mov al, byte [ebx + 0x1e]
test al, al
je 0x45987b
cmp byte [ebp - 0x1d0], al
jne 0x4598a3
lea eax, [ebp - 0x28]
push eax
lea eax, [ebx + 0x24]
push 0x104
push eax
call fcn.0046a482
add esp, 0xc
push 1
push dword [ebp - 0x1d4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x45975f
push 0
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x1a8]
push eax
push dword [ebp - 0x1d4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046984a
mov esp, ebp
pop ebp
ret
push 3
push edi
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046984a
mov esp, ebp
pop ebp
ret
push 2
push edi
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046984a
mov esp, ebp
pop ebp
ret
push str.SNV3GetDlg_OnCommand___IDPASTE
call fcn.0045f4c0
add esp, 4
test ebx, ebx
je 0x45975f
xor eax, eax
cmp byte [ebx + 0x18], 1
push 0
push 0
setne al
push 0x302
add eax, 0x459
push eax
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046984a
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x22c]
test eax, eax
je 0x459982
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp + 0x14], 0x300
jne 0x45975f
push 0x24
lea eax, [ebp - 0x28]
mov byte [ebp - 0x28], 0
push eax
xorps xmm0, xmm0
mov word [ebp - 7], 0
push 0x459
push edi
movdqu xmmword [ebp - 0x27], xmm0
mov byte [ebp - 5], 0
movdqu xmmword [ebp - 0x17], xmm0
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
mov dl, byte [ebx + 0x20]
mov esi, eax
cmp dl, 2
je 0x4599da
cmp dl, 3
je 0x4599da
xor ecx, ecx
mov eax, 0x18
cmp dl, 1
cmove ecx, eax
jmp 0x4599df
mov ecx, 0x1d
xor eax, eax
test byte [ebx + 0x19], 2
je 0x4599ec
cmp esi, 0x18
jb 0x459a0e
xor eax, eax
cmp dl, 2
sete al
push eax
push ecx
push 0
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push eax
call fcn.00458c00
add esp, 0x1c
neg eax
sbb eax, eax
inc eax
push eax
push 1
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046984a
mov esp, ebp
pop ebp
ret
add eax, 0xfffffba6
cmp eax, 6
ja 0x459bdc
cmp dword [ebp + 0x14], 0x300
jne 0x45975f
mov al, byte [ebx + 0x20]
cmp al, 2
je 0x459b10
cmp al, 3
je 0x459b10
xorps xmm0, xmm0
mov byte [ebp - 0x20], 0
xor ecx, ecx
movq qword [ebp - 0xf], xmm0
movdqu xmmword [ebp - 0x1f], xmm0
mov dword [ebp - 0x1d8], ecx
mov esi, 0x45a
mov dword [ebp - 0x1d4], 6
jmp 0x459a90
mov eax, 0x19
sub eax, ecx
push eax
lea eax, [ebp - 0x20]
add eax, ecx
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
cmp byte [ebx + 0x23], 0
mov dword [ebp - 0x1dc], eax
jne 0x459acf
cmp dword [ebp + 0xc], esi
jne 0x459acf
cmp eax, 4
jne 0x459acf
push 0
push 0
push 0x28
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x1dc]
mov ecx, dword [ebp - 0x1d8]
inc esi
add ecx, eax
dec dword [ebp - 0x1d4]
mov dword [ebp - 0x1d8], ecx
jne 0x459a90
xor eax, eax
test byte [ebx + 0x19], 2
je 0x459af9
cmp ecx, 0x18
sete al
jmp 0x459a0e
cmp byte [ebx + 0x20], 2
sete al
push eax
push 0x18
push 0
push 0x19
lea eax, [ebp - 0x20]
push eax
jmp 0x4599fe
xorps xmm0, xmm0
mov byte [ebp - 0x24], 0
xor ecx, ecx
movq qword [ebp - 0x13], xmm0
movdqu xmmword [ebp - 0x23], xmm0
mov dword [ebp - 0xb], 0
mov esi, 0x45a
mov byte [ebp - 7], 0
mov dword [ebp - 0x1d8], ecx
mov dword [ebp - 0x1d4], 0x4a80e8
mov dword [ebp - 0x1dc], 7
lea ecx, [ecx]
mov eax, 0x1e
sub eax, ecx
push eax
lea eax, [ebp - 0x24]
add eax, ecx
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
cmp byte [ebx + 0x23], 0
mov dword [ebp - 0x1e0], eax
jne 0x459b94
cmp dword [ebp + 0xc], esi
jne 0x459b94
mov ecx, dword [ebp - 0x1d4]
cmp eax, dword [ecx]
jne 0x459b94
push 0
push 0
push 0x28
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [ebp - 0x1d8]
inc esi
add dword [ebp - 0x1d4], 4
add ecx, eax
dec dword [ebp - 0x1dc]
mov dword [ebp - 0x1d8], ecx
jne 0x459b50
xor eax, eax
test byte [ebx + 0x19], 2
je 0x459bc5
cmp ecx, 0x1d
sete al
jmp 0x459a0e
cmp byte [ebx + 0x20], 2
sete al
push eax
push 0x1d
push 0
push 0x1e
lea eax, [ebp - 0x24]
push eax
jmp 0x4599fe
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046984a
mov esp, ebp
pop ebp
ret