Function at 0x420fa7
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fe3a1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5475b0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x5475b0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov eax, 0x8c
mov esi, dword [ebp + 0x10]
cmp ebx, eax
ja 0x4214e6
je 0x4214d5
cmp ebx, 0x6c
ja 0x4211f5
je 0x4211e5
cmp ebx, 0x64
je 0x4211d2
cmp ebx, 0x65
je 0x4211c7
cmp ebx, 0x66
je 0x42119e
cmp ebx, 0x68
je 0x42117d
jbe 0x421500
cmp ebx, 0x6a
jbe 0x421050
cmp ebx, 0x6b
jne 0x421500
lea ecx, [edi - 0x90]
call fcn.00422022
jmp 0x421500
lea esi, [edi - 0x6c]
mov eax, dword [esi]
mov ecx, esi
push 0x514c2c
call dword [eax + 0x20]
mov dword [esp + 0x14], eax
mov ecx, esi
mov eax, dword [esi]
push str.restore
call dword [eax + 0x20]
mov ecx, dword [esp + 0x14]
mov esi, eax
test ecx, ecx
je 0x4210ac
test esi, esi
je 0x4210ac
mov edx, dword [ecx]
cmp ebx, 0x69
push 0
sete bl
xor eax, eax
test bl, bl
sete al
push eax
push str.show
call dword [edx + 0x34]
mov edx, dword [esi]
mov ecx, esi
push 0
movzx eax, bl
push eax
push str.show
call dword [edx + 0x34]
mov ebx, dword [ebp + 8]
call fcn.0043c068
cmp ebx, 0x69
jne 0x421127
xor ebx, ebx
lea esi, [edi - 0x8c]
inc ebx
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [edi + 0xd0], ebx
push dword [0x549e80]
push 0x512110
push str.MaxState
push str.wndpos
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [edi + 0x86b0]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
lea eax, [esp + 0x24]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push ecx
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.00419dcd
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
xor eax, 0x10000
jmp 0x42116d
and dword [edi + 0xd0], 0
push dword [0x549e80]
push 0x513308
push str.MaxState
push str.wndpos
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ecx
lea eax, [edi + 0x86b0]
lea esi, [edi - 0x8c]
push eax
mov ecx, esi
call fcn.00419dcd
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x10000
push eax
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp 0x421500
push esi
push 0xf020
push 0x112
push dword [edi - 0x8c]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.0043c068
jmp 0x421500
cmp dword [edi + 0xd0], 0
jne 0x421500
push esi
push 0xf012
push 0x112
push dword [edi - 0x8c]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x421500
mov eax, dword [edi - 0x8c]
jmp 0x421502
push dword [ebp + 0xc]
lea ecx, [edi + 0x86a4]
call fcn.0044b69b
jmp 0x421502
lea ecx, [edi - 0x90]
call fcn.00422324
jmp 0x421500
cmp ebx, 0x6d
je 0x4214c8
jbe 0x421500
cmp ebx, 0x74
jbe 0x421345
cmp ebx, 0x75
je 0x421266
cmp ebx, 0x76
je 0x421256
cmp ebx, 0x77
jne 0x421500
mov eax, dword [edi + 0x86fc]
test eax, eax
je 0x421500
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x421500
mov eax, dword [edi + 0x86fc]
push 0
push 0
push 0x4dc
push dword [eax + 4]
jmp 0x4211bc
lea ecx, [edi - 0x90]
call fcn.00421c34
jmp 0x421500
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x4212ad
cmp eax, 2
je 0x4212ad
test eax, eax
je 0x421287
cmp eax, 4
je 0x421287
cmp eax, 5
jne 0x421500
push esi
lea ecx, [edi + 0x8724]
call fcn.004028f2
push 0
push 0x64
push 0x1e3
push dword [edi - 0x8c]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x421500
push 0x1e3
push dword [edi - 0x8c]
call dword [sym.imp.USER32.dll_KillTimer]
push esi
lea ecx, [esp + 0x18]
call fcn.00404fa0
mov dword [esp + 0x40], ebx
mov esi, dword [esp + 0x14]
mov ecx, dword [esi - 8]
test ecx, ecx
jle 0x4212e9
xor eax, eax
test ecx, ecx
jle 0x4212e9
cmp word [esi + eax*2], 0x20
jne 0x42131b
inc eax
cmp eax, ecx
jl 0x4212dd
lea ecx, [edi - 0x6c]
mov eax, dword [ecx]
push str.searchedit
call dword [eax + 0x20]
test eax, eax
je 0x42130d
mov edx, dword [eax]
mov ecx, eax
push 0
push 0x512700
push 0x51380c
call dword [edx + 0x34]
lea ecx, [esp + 0x14]
call fcn.00403080
jmp 0x421500
lea ecx, [edi - 0x6c]
mov eax, dword [ecx]
push str.searchedit
call dword [eax + 0x20]
test eax, eax
je 0x42130d
push esi
lea ecx, [edi - 0x90]
call fcn.00421dbd
lea ecx, [edi + 0x8724]
call fcn.0040503b
jmp 0x42130d
mov eax, dword [ebp + 0xc]
cmp dword [edi + 0x86f4], eax
je 0x421500
lea eax, [edi - 0x90]
xor esi, esi
inc esi
mov dword [esp + 0x1c], eax
push esi
mov ecx, eax
call fcn.00421d04
lea ecx, [ebx - 0x6e]
xor ebx, ebx
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x4213aa
lea ecx, [esp + 0x18]
mov dword [edi + 0x86f8], esi
call fcn.0041e69b
push ebx
mov dword [esp + 0x44], ebx
lea ecx, [edi - 0x90]
push dword [eax]
call fcn.00424083
or dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00403080
jmp 0x42148c
cmp dword [ebp + 8], 0x74
jne 0x4213be
mov ecx, dword [esp + 0x1c]
call fcn.00421eb0
jmp 0x421500
mov eax, dword [edi + 0x86ec]
sub eax, dword [edi + 0x86e8]
sar eax, 3
cmp eax, ecx
jb 0x42148c
mov eax, dword [edi + 0x86e8]
mov dword [edi + 0x86f8], ebx
push 0x514a90
push dword [eax + ecx*8 - 8]
call fcn.004da5d4
pop ecx
pop ecx
test eax, eax
je 0x42146c
mov eax, dword [edi + 0x86e8]
mov ecx, dword [esp + 0x14]
push 0x514db8
push dword [eax + ecx*8 - 8]
call fcn.004da5d4
pop ecx
pop ecx
test eax, eax
je 0x42146c
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x86e8]
dec ecx
push 0x514dc0
lea ecx, [eax + ecx*8]
call fcn.0040e832
cmp eax, 0xffffffff
jne 0x42146c
mov eax, dword [edi + 0x86e8]
mov ecx, dword [esp + 0x14]
push str.US:g8n
push dword [eax + ecx*8 - 8]
call fcn.004da5d4
pop ecx
pop ecx
test eax, eax
je 0x42146c
mov eax, dword [edi + 0x86e8]
mov ecx, dword [esp + 0x14]
push 0x514dd4
push dword [eax + ecx*8 - 8]
call fcn.004da5d4
pop ecx
pop ecx
test eax, eax
jne 0x421470
mov eax, esi
jmp 0x421472
mov eax, ebx
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [edi + 0x86e8]
push dword [eax + ecx*8 - 4]
lea ecx, [edi - 0x90]
call fcn.00424083
mov ecx, dword [edi + 0x86f4]
test ecx, ecx
je 0x4214a2
mov eax, dword [ecx]
push ebx
push ebx
push str.down
call dword [eax + 0x34]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x86f4], ecx
test ecx, ecx
je 0x4214bb
mov eax, dword [ecx]
push ebx
push esi
push str.down
call dword [eax + 0x34]
lea ecx, [edi - 0x90]
mov eax, dword [ecx]
call dword [eax + 0x2c]
jmp 0x421500
lea ecx, [edi - 0x90]
call fcn.00422101
jmp 0x421500
xor eax, eax
xor edx, edx
push eax
push eax
push eax
call fcn.00428883
add esp, 0xc
jmp 0x421500
cmp ebx, 0xf3
jne 0x421500
xor eax, eax
push eax
push eax
push eax
push 0x429005
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004d9731
mov esp, ebp
pop ebp
ret 0xc