Function at 0x40a677
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x42e07c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [section..data]
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, section..data
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.00401fbc
mov eax, dword [ebx + 0x6c]
push ecx
sub eax, 0x10
mov esi, esp
call fcn.004022eb
add eax, 0x10
lea ecx, [ebx + 0x1ec]
mov dword [esi], eax
call fcn.00402d39
xor edi, edi
cmp eax, edi
jne 0x40a6eb
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]
jmp 0x40ad9d
movzx eax, word [ebx + 0x252]
cmp eax, 2
ja 0x40ad84
jne 0x40a70b
cmp word [ebx + 0x250], 4
ja 0x40ad84
mov eax, dword [ebx + 0x278]
cmp dword [eax - 0xc], edi
jle 0x40a77d
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], 0x4299d4
mov dword [ebp - 0x40], edi
call fcn.00401f3b
lea eax, [ebx + 0x278]
mov edi, esi
call fcn.00402b24
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x20], eax
push 0
xor eax, eax
lea edi, [ebp - 0x58]
call fcn.00405db7
test eax, eax
jne 0x40a7c2
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.00401159
cmp dword [ebp - 0x4c], 0
je 0x40a77b
push dword [ebp - 0x4c]
call fcn.00414241
xor edi, edi
xor eax, eax
cmp dword [ebx + 0x228], edi
ja 0x40a794
cmp word [ebx + 0x222], di
jbe 0x40a83f
call fcn.00401976
cmp eax, edi
jne 0x40a827
cmp byte [ebx + 0x21a], 0
je 0x40a812
cmp dword [ebx + 0x228], edi
jbe 0x40a827
push 0x75
lea eax, [ebp - 0x18]
push eax
call fcn.00401fbc
jmp 0x40a6d1
lea eax, [ebp - 0x60]
lea esi, [ebp - 0x58]
call fcn.00403a39
push 0
push 0x41382e
push dword [ebp - 0x20]
push 0xcc
push dword [0x4306e8]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
test eax, eax
jne 0x40a762
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.00401159
cmp dword [ebp - 0x4c], 0
je 0x40ad97
push dword [ebp - 0x4c]
call fcn.00414241
jmp 0x40ad97
call fcn.00401a69
cmp eax, edi
jne 0x40a827
cmp dword [ebx + 0x228], edi
jbe 0x40a827
push 0x76
jmp 0x40a7b4
mov ecx, dword [ebx + 0x228]
cmp ecx, edi
jbe 0x40a83f
cmp eax, ecx
jbe 0x40a83f
push 0x854
jmp 0x40a7b4
mov byte [ebp - 0x19], 0
cmp eax, edi
jbe 0x40a866
cmp word [ebx + 0x222], di
jbe 0x40a866
mov ecx, dword [ebx + 0x224]
cmp ecx, edi
je 0x40a860
jbe 0x40a866
cmp eax, ecx
jae 0x40a866
mov byte [ebp - 0x19], 1
jmp 0x40a875
mov ecx, ebx
call fcn.0040b041
test eax, eax
je 0x40ad97
cmp dword [ebx + 0x22c], edi
jbe 0x40a961
cmp byte [ebx + 0x21d], 0
jne 0x40a911
mov eax, dword [ebx + 0x68]
sub eax, 0x10
call fcn.004022eb
add eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x68]
cmp dword [eax - 0xc], edi
jne 0x40a8c9
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x2c], vtable.CGetHDSerial.0
call fcn.00402991
lea edi, [ebp - 0x24]
call fcn.00402b24
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00401159
mov esi, dword [ebp - 0x24]
push ecx
lea eax, [esi - 0x10]
mov edi, esp
call fcn.004022eb
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebx + 0x27c]
push ecx
sub eax, 0x10
mov edi, esp
call fcn.004022eb
add eax, 0x10
lea ecx, [ebx + 0x208]
mov dword [edi], eax
call fcn.004015c1
pop ecx
mov dword [ebp - 0x20], eax
pop ecx
lea eax, [esi - 0x10]
call fcn.00401159
mov eax, dword [ebp - 0x20]
xor edi, edi
jmp 0x40a941
push ecx
mov esi, esp
push 0x42899c
call fcn.00401f50
mov eax, dword [ebx + 0x27c]
push ecx
sub eax, 0x10
mov esi, esp
call fcn.004022eb
add eax, 0x10
lea ecx, [ebx + 0x208]
mov dword [esi], eax
call fcn.004015c1
pop ecx
pop ecx
cmp eax, edi
jge 0x40a94f
push 0x853
jmp 0x40a7b4
cmp eax, dword [ebx + 0x22c]
jb 0x40a961
push 0x855
jmp 0x40a7b4
cmp byte [ebx + 0x219], 0
jne 0x40a999
call fcn.00403621
test al, al
jne 0x40a992
call fcn.004035b0
test al, al
jne 0x40a992
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40a999
push 0x78
jmp 0x40a7b4
push 0x77
jmp 0x40a7b4
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.00405b7e
cmp byte [ebx + 0x24e], 2
jb 0x40a9f6
lea eax, [ebx + 0x280]
lea edi, [ebx + 0x1dc]
call fcn.00402b24
lea eax, [ebx + 0x284]
lea edi, [ebx + 0x1e0]
call fcn.00402b24
jmp 0x40aa15
mov esi, 0x42899c
push esi
lea eax, [ebx + 0x1dc]
push eax
call fcn.004020c5
push esi
lea eax, [ebx + 0x1e0]
push eax
call fcn.004020c5
lea edi, [ebx + 0x1e4]
lea eax, [ebx + 0x6c]
call fcn.00402b24
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.00401295
push 0x7f02
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push esi
push esi
push ebx
push 0x40a5cd
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 0x40aac7
push 0x68
lea eax, [ebp - 0x18]
push eax
call fcn.00401fbc
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 0x40ad97
push dword [ebx + 0x200]
movzx eax, byte [ebx + 0x218]
push dword [ebx + 0x28c]
mov esi, dword [ebx + 0x1e8]
mov dword [ebx + 0x60], eax
call fcn.00407720
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40ab7c
cmp byte [ebx + 0x219], 0
jne 0x40ab5d
lea ecx, [ebx + 0x1ec]
call fcn.00403249
test eax, eax
je 0x40ac7c
mov eax, dword [ebx + 0x1e8]
push dword [eax + 4]
lea eax, [ebx + 0x1ec]
call fcn.00403499
test eax, eax
je 0x40ac7c
push dword [ebx + 0x2a4]
lea eax, [ebx + 0x1ec]
call fcn.00403499
test eax, eax
je 0x40ac7c
push 0
push 0x7d0
push 3
push dword [ebx + 4]
mov dword [ebp - 0x24], 1
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [ebx + 0x60], 0
je 0x40ab7c
lea esi, [ebx + 0x294]
call fcn.0040d563
push dword [esi]
lea eax, [ebx + 0x298]
push eax
call fcn.0040e224
push dword [ebx + 0x28c]
call fcn.00414d4a
xor esi, esi
pop ecx
mov dword [ebx + 0x28c], esi
cmp dword [ebp - 0x24], esi
je 0x40ad43
cmp byte [ebx + 0x21b], 0
je 0x40abea
cmp byte [ebp - 0x19], 0
jne 0x40abea
lea edi, [ebx + 0x68]
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jne 0x40abea
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x2c], vtable.CGetHDSerial.0
call fcn.00402991
call fcn.00402b24
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00401159
xor eax, eax
push eax
push eax
push ebx
push 0x40a60c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x288]
sub eax, 0x10
call fcn.004022eb
add eax, 0x10
lea edi, [ebx + 0x280]
mov dword [ebp - 0x28], eax
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jle 0x40acb4
push 0x42959c
lea esi, [ebp - 0x20]
call fcn.00401f81
push 0x4295a0
lea esi, [ebp - 0x30]
call fcn.00401f81
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push edi
push eax
mov eax, esi
call fcn.00402c06
pop ecx
pop ecx
lea ecx, [ebp - 0x38]
push ecx
call fcn.00402c06
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.00402c96
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.00401159
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
call fcn.00401159
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.00401159
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00401159
jmp 0x40acbd
push 0x66
lea eax, [ebp - 0x18]
push eax
call fcn.00401fbc
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], 2
call edi
jmp 0x40a6e3
lea eax, [ebp - 0x28]
push eax
call fcn.0040c3e9
push dword [ebp - 0x28]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
xor esi, esi
push esi
push dword [ebx + 0x1b8]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [ebp - 0x19], 0
je 0x40acf8
movzx eax, word [ebx + 0x222]
imul eax, eax, 0x3e8
push esi
push eax
push 2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jne 0x40ad36
mov edx, dword [ebx + 4]
lea esi, [ebx + 0x74]
mov ecx, esi
call fcn.00405c30
push 0xa
lea edi, [ebx + 0x70]
pop ebx
call fcn.004093dd
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 - 0x28]
add eax, 0xfffffff0
call fcn.00401159
jmp 0x40ad74
push 0x7b
lea eax, [ebp - 0x18]
push eax
call fcn.00401fbc
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 eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401159
mov eax, dword [ebp - 0x24]
jmp 0x40ada4
push 0x10
push dword [ebx + 0x5c]
push 0x429570
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401159
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004144e4
leave
ret