Function at 0x401370
Capabilities:
Create process on windows
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x64
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
je 0x401670
ja 0x401540
cmp eax, 0x2b
je 0x401950
cmp eax, 0x4e
jne 0x4015e0
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
mov edx, eax
and edx, 0xfffffffd
cmp edx, 0xfffffffc
je 0x401a70
cmp eax, 0xffffff36
jne 0x401648
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x20f0
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [ebp - 0x30], eax
call eax
mov ebx, dword [sym.imp.user32.dll_GetWindowTextLengthW]
sub esp, 8
mov esi, eax
mov dword [esp], eax
call ebx
sub esp, 4
inc eax
mov edx, eax
je 0x401ac0
add eax, eax
mov dword [ebp - 0x34], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x38], eax
call eax
mov edx, dword [ebp - 0x34]
test eax, eax
mov edi, eax
je 0x401ac0
mov dword [esp], esi
mov esi, dword [sym.imp.user32.dll_GetWindowTextW]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call esi
sub esp, 0xc
test eax, eax
je 0x401c28
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x20f1
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
sub esp, 8
mov dword [ebp - 0x30], eax
mov dword [esp], eax
call ebx
sub esp, 4
inc eax
mov edx, eax
je 0x401b72
add eax, eax
mov dword [ebp - 0x34], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
mov edx, dword [ebp - 0x34]
test eax, eax
mov ebx, eax
je 0x401c77
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], edx
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
je 0x401c38
test edi, edi
je 0x401bac
mov dword [esp + 0xc], edi
mov dword [esp + 8], str.RegisteredOwner
mov dword [esp + 4], 0x417024
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._set_reg_key
mov dword [ebp - 0x30], edi
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x34], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.RegisteredOrganization
mov dword [esp + 4], 0x417024
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._set_reg_key
mov dword [esp + 0xc], edi
mov dword [esp + 8], str.RegisteredOwner
mov dword [esp + 4], 0x4170a8
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._set_reg_key
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.RegisteredOrganization
mov dword [esp + 4], 0x4170a8
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._set_reg_key
call sym._apply
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call esi
xor eax, eax
jmp 0x40164a
cmp eax, 0x111
je 0x401630
cmp eax, 0x138
jne 0x401648
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgCtrlID]
sub esp, 4
cmp eax, 0x20f4
je 0x401a00
jg 0x401658
cmp eax, 0x20f3
jne 0x401648
mov dword [esp], 8
mov ebx, dword [sym.imp.user32.dll_GetSysColor]
call ebx
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SetTextColor]
sub esp, 8
mov dword [esp], 5
call ebx
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SetBkColor]
sub esp, 8
mov dword [esp], 5
call dword [sym.imp.user32.dll_GetSysColorBrush]
sub esp, 4
jmp 0x40164a
cmp eax, 2
jne 0x401648
mov eax, dword [0x416060]
test eax, eax
je 0x401604
mov dword [esp], eax
call dword [sym.imp.user32.dll_DestroyIcon]
mov dword [0x416060], 0
sub esp, 4
mov eax, dword [0x416ed0]
test eax, eax
je 0x401648
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_DeleteObject]
xor eax, eax
mov dword [0x416ed0], 0
sub esp, 4
jmp 0x40164a
mov eax, dword [ebp + 0x10]
shr eax, 0x10
cmp eax, 0x300
je 0x401a30
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
sub eax, 0x20f5
cmp eax, 1
ja 0x401648
jmp 0x401581
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDC]
sub esp, 4
mov ebx, eax
mov dword [esp + 0xc], 0x417000
mov dword [esp + 8], str.RegisteredOwner
mov dword [esp + 4], 0x4170a8
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._get_reg_key
mov dword [esp + 0xc], 0x417000
mov dword [esp + 8], str.RegisteredOrganization
mov edi, eax
mov dword [esp + 4], 0x4170a8
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._get_reg_key
mov edx, dword [sym.imp.user32.dll_SetDlgItemTextW]
mov dword [esp + 8], edi
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x20f0
mov dword [ebp - 0x30], edx
mov dword [esp], eax
call edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 0x20f1
mov dword [esp], eax
call edx
mov eax, dword [ebp + 8]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetParent]
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x46d
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
mov dword [esp], edi
mov edi, dword [sym.imp.ucrtbase.dll_free]
call edi
mov dword [esp], esi
call edi
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x20f2
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
mov esi, eax
test eax, eax
je 0x401814
lea eax, [ebp - 0x2c]
mov edi, dword [sym.imp.user32.dll_GetClientRect]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call edi
lea eax, [ebp - 0x1c]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], esi
call edi
mov eax, dword [ebp - 0x10]
sub esp, 8
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.user32.dll_MoveWindow]
mov eax, dword [ebp + 8]
sub esp, 0x18
mov dword [esp + 4], 0xfffffffa
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowLongW]
sub esp, 8
mov dword [esp + 0x14], 0x8000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x66
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadImageW]
mov dword [0x416060], eax
sub esp, 0x18
mov dword [esp + 4], 0x5a
mov dword [esp], ebx
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
sub esp, 8
mov dword [esp + 8], 0x48
mov dword [esp + 4], eax
mov dword [esp], 0x18
call dword [sym.imp.kernel32.dll_MulDiv]
sub esp, 0xc
neg eax
mov dword [esp + 0x34], 0x41710c
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CreateFontW]
sub esp, 0x38
mov dword [0x416ed0], eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 1
mov dword [esp + 8], 0x30
mov dword [esp + 4], 0x20f4
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendDlgItemMessageW]
sub esp, 0x14
mov dword [esp], 0x41711a
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 4], str.wine_get_version
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x40192f
call eax
mov dword [esp + 4], 0x20f3
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetDlgItemTextA]
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.user32.dll_ReleaseDC]
xor eax, eax
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
cmp dword [ebp + 0x10], 0x20f2
jne 0x401648
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], 6
lea ebx, [eax + 0x1c]
mov dword [esp + 4], ebx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.user32.dll_FillRect]
mov eax, dword [0x416060]
sub esp, 0xc
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x20], 2
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.user32.dll_DrawIconEx]
mov eax, dword [ebp + 0x14]
sub esp, 0x24
mov dword [esp + 0xc], 8
mov dword [esp + 8], 0xa
mov dword [esp + 4], ebx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.user32.dll_DrawEdge]
sub esp, 0x10
jmp 0x401648
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0x7f
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SetTextColor]
sub esp, 8
mov dword [esp], 5
call dword [sym.imp.user32.dll_GetSysColor]
jmp 0x4015af
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetParent]
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x468
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
xor eax, eax
sub esp, 0x10
jmp 0x40164a
cmp dword [ebp + 0x10], 0x20f5
jne 0x401648
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], 0
add eax, 0x7c
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], str.open
mov dword [esp], 0
call dword [sym.imp.shell32.dll_ShellExecuteW]
xor eax, eax
sub esp, 0x18
jmp 0x40164a
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x20f1
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
sub esp, 8
mov edi, eax
mov dword [esp], eax
call ebx
sub esp, 4
inc eax
mov edx, eax
je 0x401bea
add eax, eax
mov dword [ebp - 0x30], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x30]
test eax, eax
mov ebx, eax
je 0x401bea
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [ebp - 0x30], eax
mov dword [esp], edi
call dword [sym.imp.user32.dll_GetWindowTextW]
mov ecx, dword [ebp - 0x30]
sub esp, 0xc
test eax, eax
jne 0x401bb2
mov dword [esp], ecx
mov edi, section..rdata
call esi
mov dword [esp + 0xc], 0x417000
mov dword [esp + 8], str.RegisteredOwner
mov dword [esp + 4], 0x417024
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._set_reg_key
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov ebx, section..rdata
jmp 0x4014c2
mov dword [esp + 0xc], edi
mov ebx, section..rdata
mov dword [esp + 8], str.RegisteredOwner
mov dword [esp + 4], 0x417024
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._set_reg_key
mov dword [ebp - 0x30], edi
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x34], 0
jmp 0x4014c2
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp + 0xc], section..rdata
mov edi, section..rdata
mov dword [esp + 8], str.RegisteredOwner
mov dword [esp + 4], 0x417024
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._set_reg_key
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 0
jmp 0x4014c2
mov dword [esp + 0xc], section..rdata
mov edi, section..rdata
mov dword [esp + 8], str.RegisteredOwner
mov ebx, edi
mov dword [esp + 4], 0x417024
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._set_reg_key
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
jmp 0x4014c2
mov dword [esp], edi
mov esi, dword [sym.imp.ucrtbase.dll_free]
call esi
jmp 0x401ac6
mov dword [esp], ebx
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov ebx, section..rdata
call esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], str.RegisteredOwner
mov dword [esp + 4], 0x417024
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._set_reg_key
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], 0
jmp 0x4014c2
mov dword [esp + 0xc], edi
mov dword [esp + 8], str.RegisteredOwner
mov dword [esp + 4], 0x417024
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._set_reg_key
mov dword [ebp - 0x30], edi
mov esi, dword [sym.imp.ucrtbase.dll_free]
jmp 0x401b61