Function at 0x40af9d
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x42f064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x43024c]
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x43024c
mov dword [ebp - 0x34], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0x67
lea eax, [ebp - 0x18]
push eax
call fcn.004027b4
mov eax, dword [ebx + 0x6c]
push ecx
sub eax, 0x10
mov esi, esp
call fcn.00402ae3
add eax, 0x10
lea ecx, [ebx + 0x1ec]
mov dword [esi], eax
call fcn.00403531
xor edi, edi
cmp eax, edi
jne 0x40b022
mov esi, dword [ebp - 0x18]
push 0x10
push dword [ebx + 0x5c]
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esi - 0x10]
call fcn.004018b4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414657
leave
ret
mov eax, dword [ebx + 0x324]
cmp dword [eax - 0xc], edi
jle 0x40b094
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x60], 0x42ab7c
mov dword [ebp - 0x40], edi
call fcn.00402733
lea eax, [ebx + 0x324]
mov edi, esi
call fcn.0040331c
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x20], eax
push 0
xor eax, eax
lea edi, [ebp - 0x58]
call fcn.00406635
test eax, eax
jne 0x40b0d9
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.004018b4
cmp dword [ebp - 0x4c], 0
je 0x40b092
push dword [ebp - 0x4c]
call fcn.00422e37
xor edi, edi
xor eax, eax
cmp dword [ebx + 0x2d4], edi
ja 0x40b0ab
cmp word [ebx + 0x2ce], di
jbe 0x40b158
call fcn.004020c2
cmp eax, edi
jne 0x40b140
cmp byte [ebx + 0x2c6], 0
je 0x40b12b
cmp dword [ebx + 0x2d4], edi
jbe 0x40b140
push 0x75
lea eax, [ebp - 0x18]
push eax
call fcn.004027b4
jmp 0x40aff7
lea eax, [ebp - 0x60]
lea esi, [ebp - 0x58]
call fcn.004042de
push 0
push 0x413fc6
push dword [ebp - 0x20]
push 0xcc
push dword [0x4324cc]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
test eax, eax
jne 0x40b079
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.004018b4
cmp dword [ebp - 0x4c], 0
je 0x40b120
push dword [ebp - 0x4c]
call fcn.00422e37
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
jmp 0x40b00c
call fcn.004021b5
cmp eax, edi
jne 0x40b140
cmp dword [ebx + 0x2d4], edi
jbe 0x40b140
push 0x76
jmp 0x40b0cb
mov ecx, dword [ebx + 0x2d4]
cmp ecx, edi
jbe 0x40b158
cmp eax, ecx
jbe 0x40b158
push 0x854
jmp 0x40b0cb
mov byte [ebp - 0x19], 0
cmp eax, edi
jbe 0x40b17f
cmp word [ebx + 0x2ce], di
jbe 0x40b17f
mov ecx, dword [ebx + 0x2d0]
cmp ecx, edi
je 0x40b179
jbe 0x40b17f
cmp eax, ecx
jae 0x40b17f
mov byte [ebp - 0x19], 1
jmp 0x40b18a
mov ecx, ebx
call fcn.0040b908
test eax, eax
je 0x40b120
cmp dword [ebx + 0x2d8], edi
jbe 0x40b276
cmp byte [ebx + 0x2c9], 0
jne 0x40b226
mov eax, dword [ebx + 0x68]
sub eax, 0x10
call fcn.00402ae3
add eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x68]
cmp dword [eax - 0xc], edi
jne 0x40b1de
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x2c], vtable.CGetHDSerial.0
call fcn.00403189
lea edi, [ebp - 0x24]
call fcn.0040331c
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004018b4
mov esi, dword [ebp - 0x24]
push ecx
lea eax, [esi - 0x10]
mov edi, esp
call fcn.00402ae3
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebx + 0x328]
push ecx
sub eax, 0x10
mov edi, esp
call fcn.00402ae3
add eax, 0x10
lea ecx, [ebx + 0x2b4]
mov dword [edi], eax
call fcn.00401d0d
pop ecx
mov dword [ebp - 0x20], eax
pop ecx
lea eax, [esi - 0x10]
call fcn.004018b4
mov eax, dword [ebp - 0x20]
xor edi, edi
jmp 0x40b256
push ecx
mov esi, esp
push 0x4298bc
call fcn.00402748
mov eax, dword [ebx + 0x328]
push ecx
sub eax, 0x10
mov esi, esp
call fcn.00402ae3
add eax, 0x10
lea ecx, [ebx + 0x2b4]
mov dword [esi], eax
call fcn.00401d0d
pop ecx
pop ecx
cmp eax, edi
jge 0x40b264
push 0x853
jmp 0x40b0cb
cmp eax, dword [ebx + 0x2d8]
jb 0x40b276
push 0x855
jmp 0x40b0cb
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x14]
lea esi, [ebx + 0x1b8]
call fcn.004063fc
cmp byte [ebx + 0x2fa], 2
jb 0x40b2d3
lea eax, [ebx + 0x32c]
lea edi, [ebx + 0x1dc]
call fcn.0040331c
lea eax, [ebx + 0x330]
lea edi, [ebx + 0x1e0]
call fcn.0040331c
jmp 0x40b2f2
mov esi, 0x4298bc
push esi
lea eax, [ebx + 0x1dc]
push eax
call fcn.004028bd
push esi
lea eax, [ebx + 0x1e0]
push eax
call fcn.004028bd
lea edi, [ebx + 0x1e4]
lea eax, [ebx + 0x6c]
call fcn.0040331c
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
inc eax
push eax
xor esi, esi
push esi
push dword [ebx + 0x1b8]
mov dword [ebx + 0x1d8], eax
call edi
push 5
push dword [ebx + 0x1b8]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.004019f0
push 0x7f02
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
movzx eax, byte [ebx + 0x2c4]
mov dword [ebx + 0x60], eax
cmp eax, esi
je 0x40b36a
lea esi, [ebx + 0x340]
call fcn.0040dd50
push dword [esi]
lea eax, [ebx + 0x344]
push eax
call fcn.0040e9c5
xor esi, esi
push esi
push esi
push ebx
push 0x40aef3
push esi
push esi
mov dword [ebx + 0x64], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x64], esi
jne 0x40b3cd
push 0x68
lea eax, [ebp - 0x18]
push eax
call fcn.004027b4
push 0x10
push dword [ebx + 0x5c]
push dword [ebp - 0x18]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
push esi
push dword [ebx + 0x1b8]
mov dword [ebx + 0x1d8], 2
call edi
jmp 0x40b120
push dword [ebx + 0x2ac]
mov esi, dword [ebx + 0x1e8]
push dword [ebx + 0x338]
call fcn.00407f9e
push dword [ebx + 0x338]
mov dword [ebp - 0x20], eax
call fcn.00415069
xor esi, esi
pop ecx
mov dword [ebx + 0x338], esi
cmp dword [ebp - 0x20], esi
je 0x40b6ad
cmp byte [ebx + 0x2c7], 0
je 0x40b455
cmp byte [ebp - 0x19], 0
jne 0x40b455
lea edi, [ebx + 0x68]
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jne 0x40b455
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], vtable.CGetHDSerial.0
call fcn.00403189
call fcn.0040331c
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004018b4
xor eax, eax
push eax
push eax
push ebx
push 0x40af32
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x334]
sub eax, 0x10
call fcn.00402ae3
add eax, 0x10
lea edi, [ebx + 0x32c]
mov dword [ebp - 0x24], eax
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jle 0x40b4e3
push 0x42a744
lea esi, [ebp - 0x28]
call fcn.00402779
push 0x42a748
lea esi, [ebp - 0x30]
call fcn.00402779
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push edi
push eax
mov eax, esi
call fcn.004033fe
pop ecx
pop ecx
lea ecx, [ebp - 0x38]
push ecx
call fcn.004033fe
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
call fcn.0040348e
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.004018b4
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
call fcn.004018b4
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.004018b4
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004018b4
jmp 0x40b4ec
lea eax, [ebp - 0x24]
push eax
call fcn.0040cc6a
push dword [ebp - 0x24]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [ebx + 0x2c5], 0
jne 0x40b62f
cmp byte [ebx + 0x2fa], 2
push ecx
mov esi, esp
jb 0x40b538
mov eax, dword [ebx + 0x330]
sub eax, 0x10
call fcn.00402ae3
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov esi, esp
call fcn.00402ae3
add eax, 0x10
mov dword [esi], eax
jmp 0x40b54c
mov edi, 0x4298bc
push edi
call fcn.00402748
push ecx
mov esi, esp
push edi
call fcn.00402748
push dword [0x4324c8]
lea edi, [ebx + 0x1ec]
call fcn.00403eda
test eax, eax
je 0x40b5b4
push 2
pop edi
cmp eax, edi
je 0x40b571
cmp eax, 3
je 0x40b571
push 0x66
jmp 0x40b573
push 0x77
lea eax, [ebp - 0x18]
push eax
call fcn.004027b4
mov esi, dword [ebp - 0x18]
push 0x10
push dword [ebx + 0x5c]
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
push 0
push dword [ebx + 0x1b8]
mov dword [ebx + 0x1d8], edi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004018b4
jmp 0x40b009
lea esi, [ebx + 0x1ec]
push esi
call fcn.00403f67
test al, al
jne 0x40b61d
call fcn.00403f50
push 0x66
lea eax, [ebp - 0x18]
push eax
call fcn.004027b4
push 0x10
push dword [ebx + 0x5c]
push dword [ebp - 0x18]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
xor esi, esi
push esi
push dword [ebx + 0x1b8]
mov dword [ebx + 0x1d8], 2
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004018b4
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004018b4
mov eax, esi
jmp 0x40b013
push 0
push 0x3e8
push 3
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
xor esi, esi
push esi
push dword [ebx + 0x1b8]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [ebp - 0x19], 0
je 0x40b65e
movzx eax, word [ebx + 0x2ce]
imul eax, eax, 0x3e8
push esi
push eax
push 2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [ebx + 0x32c]
cmp dword [eax - 0xc], esi
jne 0x40b6a0
mov edx, dword [ebx + 4]
lea esi, [ebx + 0x74]
mov ecx, esi
call fcn.004064ae
push 0xa
lea edi, [ebx + 0x70]
pop ebx
call fcn.00409d04
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x34]
push 0
push 0x3e8
push 6
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004018b4
jmp 0x40b6de
push 0x7b
lea eax, [ebp - 0x18]
push eax
call fcn.004027b4
push 0x10
push dword [ebx + 0x5c]
push dword [ebp - 0x18]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
push esi
push dword [ebx + 0x1b8]
mov dword [ebx + 0x1d8], 2
call edi
mov esi, dword [ebp - 0x20]
jmp 0x40b60b