Function at 0x4599a4
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.0x459560.5
je 0x4599c2
lea ecx, [eax - 1]
cmp ecx, 7
ja case.0x459560.5
jmp dword [ecx*4 + 0x459c30]
test ebx, ebx
je 0x45979f
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 0x4595ff
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 0x45968a
cmp al, 3
je 0x45968a
cmp al, 1
lea eax, [ebx + 0x24]
push 1
jne 0x4595f8
push 0x18
jmp 0x459691
push 0
jmp 0x459691
cmp al, 2
jne 0x4596ad
mov al, byte [ebx + 0x20]
cmp al, 2
je 0x459656
cmp al, 3
je 0x459656
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 0x459622
mov ebx, dword [ebp - 0x1d8]
push 1
push 0x18
jmp 0x45968e
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 0x459660
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.00458c30
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 0x459788
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.0045f880
add esp, 0xc
test esi, esi
jne 0x459788
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.0045f880
mov al, byte [ebx + 0x1d]
add esp, 0x10
test al, al
je 0x45974b
cmp byte [ebp - 0x1ce], al
jne 0x459788
mov al, byte [ebx + 0x1f]
test al, al
je 0x45975a
cmp byte [ebp - 0x1cd], al
jne 0x459788
mov al, byte [ebx + 0x1e]
test al, al
je 0x459769
cmp byte [ebp - 0x1d0], al
jne 0x459788
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.004698aa
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.004698aa
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x45979f
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.00458c30
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 0x4598e3
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.0045f880
add esp, 0xc
test esi, esi
jne 0x4598e3
mov al, byte [ebx + 0x1d]
test al, al
je 0x45989d
cmp byte [ebp - 0x1ce], al
jne 0x4598e3
mov al, byte [ebx + 0x1f]
test al, al
je 0x4598ac
cmp byte [ebp - 0x1cd], al
jne 0x4598e3
mov al, byte [ebx + 0x1e]
test al, al
je 0x4598bb
cmp byte [ebp - 0x1d0], al
jne 0x4598e3
lea eax, [ebp - 0x28]
push eax
lea eax, [ebx + 0x24]
push 0x104
push eax
call fcn.0046a4e2
add esp, 0xc
push 1
push dword [ebp - 0x1d4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x45979f
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.004698aa
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.004698aa
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.004698aa
mov esp, ebp
pop ebp
ret
push str.SNV3GetDlg_OnCommand___IDPASTE
call fcn.0045f520
add esp, 4
test ebx, ebx
je 0x45979f
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.004698aa
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x22c]
test eax, eax
je 0x4599c2
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 0x45979f
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 0x459a1a
cmp dl, 3
je 0x459a1a
xor ecx, ecx
mov eax, 0x18
cmp dl, 1
cmove ecx, eax
jmp 0x459a1f
mov ecx, 0x1d
xor eax, eax
test byte [ebx + 0x19], 2
je 0x459a2c
cmp esi, 0x18
jb 0x459a4e
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.00458c30
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.004698aa
mov esp, ebp
pop ebp
ret
add eax, 0xfffffba6
cmp eax, 6
ja 0x459c1c
cmp dword [ebp + 0x14], 0x300
jne 0x45979f
mov al, byte [ebx + 0x20]
cmp al, 2
je 0x459b50
cmp al, 3
je 0x459b50
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 0x459ad0
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 0x459b0f
cmp dword [ebp + 0xc], esi
jne 0x459b0f
cmp eax, 4
jne 0x459b0f
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 0x459ad0
xor eax, eax
test byte [ebx + 0x19], 2
je 0x459b39
cmp ecx, 0x18
sete al
jmp 0x459a4e
cmp byte [ebx + 0x20], 2
sete al
push eax
push 0x18
push 0
push 0x19
lea eax, [ebp - 0x20]
push eax
jmp 0x459a3e
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 0x459bd4
cmp dword [ebp + 0xc], esi
jne 0x459bd4
mov ecx, dword [ebp - 0x1d4]
cmp eax, dword [ecx]
jne 0x459bd4
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 0x459b90
xor eax, eax
test byte [ebx + 0x19], 2
je 0x459c05
cmp ecx, 0x1d
sete al
jmp 0x459a4e
cmp byte [ebx + 0x20], 2
sete al
push eax
push 0x1d
push 0
push 0x1e
lea eax, [ebp - 0x24]
push eax
jmp 0x459a3e
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004698aa
mov esp, ebp
pop ebp
ret