Function at 0x4013a5
Capabilities:
Create thread
Hide graphical window

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x406940], eax
push 0
call sub.kernel32.dll_SetLastError
push str.__Keygen_for_Ancient_Quest_of_Saqqarah__
push 0
push 0
call sub.kernel32.dll_CreateMutexA
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
je 0x40139e
push 0x7d5
push dword [0x406940]
call sub.user32.dll_LoadIconA
mov dword [0x406944], eax
push 0
call sub.gdi32.dll_CreateSolidBrush
mov dword [0x406948], eax
push 0xffffff
push 0
push 0
call sub.gdi32.dll_CreatePen
mov dword [0x40694c], eax
push str.Lucida_Console
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x1f4
push 0
push 0
push 0
push 0xd
call sub.gdi32.dll_CreateFontA
mov dword [0x406950], eax
push str.Verdana
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push 0xd
call sub.gdi32.dll_CreateFontA
mov dword [0x406984], eax
call sub.comctl32.dll_InitCommonControls
push 0x4013a5
push 7
push 1
push dword [0x406940]
call fcn.00401ec0
push 0
push 0x4013a5
push 0
push 0x64
push dword [0x406940]
call sub.user32.dll_DialogBoxParamA
push dword [0x40694c]
call sub.gdi32.dll_DeleteObject
push dword [0x406948]
call sub.gdi32.dll_DeleteObject
push dword [0x406950]
call sub.gdi32.dll_DeleteObject
push dword [0x406954]
call sub.gdi32.dll_DeleteObject
push 0
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xffffffb8
mov eax, dword [ebp + 8]
mov dword [0x4069d8], eax
cmp dword [ebp + 0xc], 0x136
jne 0x4013ca
mov eax, dword [0x406948]
leave
ret 0x10
cmp dword [ebp + 0xc], 0x2b
jne 0x4013e0
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.004018a8
jmp 0x401808
cmp dword [ebp + 0xc], 0x133
je 0x4013f2
cmp dword [ebp + 0xc], 0x138
jne 0x401417
push 1
push dword [ebp + 0x10]
call sub.gdi32.dll_SetBkColor
push 0xffffff
push dword [ebp + 0x10]
call sub.gdi32.dll_SetTextColor
mov eax, dword [0x406948]
leave
ret 0x10
cmp dword [ebp + 0xc], 0xf
jne 0x401542
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 8]
call sub.user32.dll_BeginPaint
mov dword [ebp - 8], eax
push dword [0x40694c]
push 0x40695c
push dword [ebp - 8]
call sub.user32.dll_FrameRect
push dword [0x40694c]
push dword [ebp - 8]
call sub.gdi32.dll_SelectObject
push 0
push 0x14
push dword [0x40695c]
push dword [ebp - 8]
call sub.gdi32.dll_MoveToEx
push 0x14
push dword [0x406964]
push dword [ebp - 8]
call sub.gdi32.dll_LineTo
push 1
push dword [ebp - 8]
call sub.gdi32.dll_SetBkMode
push 0xffffff
push dword [ebp - 8]
call sub.gdi32.dll_SetTextColor
push dword [0x406950]
push dword [ebp - 8]
call sub.gdi32.dll_SelectObject
push dword [0x406968]
push dword [0x406964]
mov dword [0x406968], 0x14
push 0x125
push 0x40695c
push 0xffffffffffffffff
push str.__Keygen_for_Ancient_Quest_of_Saqqarah__
push dword [ebp - 8]
call sub.user32.dll_DrawTextA
pop dword [0x406964]
pop dword [0x406968]
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 8]
call sub.user32.dll_EndPaint
push dword [0x40697c]
call sub.user32.dll_GetDC
mov dword [ebp - 8], eax
push dword [0x40694c]
push 0x40696c
push dword [ebp - 8]
call sub.user32.dll_FrameRect
push dword [ebp - 8]
push dword [0x40697c]
call sub.user32.dll_ReleaseDC
push dword [0x406980]
call sub.user32.dll_GetDC
mov dword [ebp - 8], eax
push dword [0x40694c]
push 0x40696c
push dword [ebp - 8]
call sub.user32.dll_FrameRect
push dword [ebp - 8]
push dword [0x406980]
call sub.user32.dll_ReleaseDC
jmp 0x401808
cmp dword [ebp + 0xc], 0x110
jne 0x4016cf
push str.__Keygen_for_Ancient_Quest_of_Saqqarah__
push dword [ebp + 8]
call sub.user32.dll_SetWindowTextA
push str.Froggy
push 0x12d
push dword [ebp + 8]
call sub.user32.dll_SetDlgItemTextA
push dword [0x406944]
push 1
push 0x80
push dword [ebp + 8]
call sub.user32.dll_SendMessageA
push dword [ebp + 8]
push 0
push 0x7ee
push 0xc8
push dword [ebp + 8]
call sub.user32.dll_SendDlgItemMessageA
push 0x40695c
push dword [ebp + 8]
call sub.user32.dll_GetClientRect
inc dword [0x406960]
inc dword [0x40695c]
dec dword [0x406968]
dec dword [0x406964]
dec dword [0x406964]
push 0x12d
push dword [ebp + 8]
call sub.user32.dll_GetDlgItem
mov dword [0x40697c], eax
push 0x12e
push dword [ebp + 8]
call sub.user32.dll_GetDlgItem
mov dword [0x406980], eax
push 0x40696c
push eax
call sub.user32.dll_GetClientRect
push 2
push 0xcc
push 0
push dword [ebp + 8]
call sub.user32.dll_SetLayeredWindowAttributes
dec dword [0x406970]
dec dword [0x40696c]
inc dword [0x406974]
inc dword [0x406978]
push 0
push dword [ebp + 8]
call sub.user32.dll_GetSystemMenu
push eax
push 0x400
push 2
push eax
call sub.user32.dll_DeleteMenu
pop eax
push 0x400
push 3
push eax
call sub.user32.dll_DeleteMenu
push 0
call fcn.00402ef1
push 0
push dword [0x406940]
push 0x7d4
call fcn.00402ffa
push 0xffffffffffffffec
push dword [ebp + 8]
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [ebp + 8]
call sub.user32.dll_SetWindowLongA
push 3
push 0
push dword [0x40610a]
push dword [ebp + 8]
call sub.user32.dll_SetLayeredWindowAttributes
push 5
push dword [ebp + 8]
call sub.user32.dll_ShowWindow
push 0x40185a
push 0x28
push 0xde
push dword [ebp + 8]
call sub.user32.dll_SetTimer
push 0x66
push dword [ebp + 8]
call sub.user32.dll_GetDlgItem
push eax
call sub.user32.dll_SetFocus
push str.RegFault
push str.SOFTWAREGameHouseSaqqarah
push 0x80000002
call fcn.00401222
jmp 0x401808
cmp dword [ebp + 0xc], 0x201
jne 0x4016ee
push 0
push 2
push 0xa1
push dword [ebp + 8]
call sub.user32.dll_SendMessageA
jmp 0x401808
cmp dword [ebp + 0xc], 0x111
jne 0x4017f8
cmp dword [ebp + 0x10], 0x65
jne 0x40171a
push 0x40180e
push 0x14
push 0x14d
push dword [ebp + 8]
call sub.user32.dll_SetTimer
jmp 0x401808
cmp dword [ebp + 0x10], 0x66
jne 0x4017c9
push dword [0x4069d8]
pop dword [0x406820]
push 0x104
push 0x40682c
push 0x12d
push dword [ebp + 8]
call sub.user32.dll_GetDlgItemTextA
cmp eax, 2
jae 0x401763
push str.Names_length_must_be_at_least_2_symbols_
push 0x12e
push dword [ebp + 8]
call sub.user32.dll_SetDlgItemTextA
jmp 0x401808
cmp eax, 0x104
jbe 0x401781
push str.Names_length_is_too_long_
push 0x12e
push dword [ebp + 8]
call sub.user32.dll_SetDlgItemTextA
jmp 0x401808
push 0x406824
push 0
push 0x40682c
push section..text
push 0
push 0
call sub.kernel32.dll_CreateThread
push 0xffffffffffffffff
push 0
push 0xb1
push 0x12e
push dword [ebp + 8]
call sub.user32.dll_SendDlgItemMessageA
push 0
push 0
push 0x301
push 0x12e
push dword [ebp + 8]
call sub.user32.dll_SendDlgItemMessageA
jmp 0x401808
cmp dword [ebp + 0x10], 0x67
jne 0x401808
push 0x4069b8
push dword [ebp + 8]
call sub.user32.dll_GetWindowRect
push 0
push 0x40198b
push dword [ebp + 8]
push 0x3e8
push dword [0x406940]
call sub.user32.dll_DialogBoxParamA
jmp 0x401808
cmp dword [ebp + 0xc], 0x10
jne 0x401808
push 0
push dword [ebp + 8]
call sub.user32.dll_EndDialog
xor eax, eax
leave
ret 0x10