Function at 0x40a73e
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e4
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 0
push dword [edi + 0x2c]
mov dword [ebp - 0x1d8], edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x2c]
mov ebx, edi
mov dword [ebp - 0x1e0], eax
call fcn.0040946e
mov eax, dword [edi + 0x1e0]
mov dword [edi + 0x2c], eax
call fcn.00402647
mov ebx, eax
mov al, byte [edi + 0x323]
mov dword [ebp - 0x1dc], ebx
cmp al, 1
je 0x40a79f
cmp al, 2
jne 0x40a8bd
xor eax, eax
lea esi, [ebp - 0x18]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x70], 0x42ea9c
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
call fcn.00402731
lea esi, [ebp - 0x14]
call fcn.00402731
lea esi, [ebp - 0xc]
call fcn.00402731
push 0xb
lea esi, [edi + 0x31c]
pop ecx
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1d8]
lea eax, [esi + 0x350]
lea edi, [ebp - 0x18]
call fcn.00403316
lea eax, [esi + 0x348]
lea edi, [ebp - 0x14]
call fcn.00403316
push dword [esi + 4]
mov dword [ebp - 0x10], ebx
lea ebx, [ebp - 0x70]
call fcn.0040c913
test eax, eax
je 0x40a8ae
xor ebx, ebx
cmp byte [esi + 0x2ef], bl
je 0x40a86b
lea edi, [esi + 0x64]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jne 0x40a854
lea ecx, [ebp - 0x1d4]
mov dword [ebp - method.CGetHDSerial.virtual_0], vtable.CGetHDSerial.0
call fcn.00403185
call fcn.00403316
mov eax, dword [ebp - 0x1d4]
add eax, 0xfffffff0
call fcn.004018b2
push ebx
push ebx
push esi
push 0x409ba3
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1dc]
lea ebx, [ebp - 0x1d4]
call fcn.00402699
pop ecx
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.0040b56d
test eax, eax
mov eax, dword [ebp - 0x1d4]
setne bl
add eax, 0xfffffff0
call fcn.004018b2
lea eax, [ebp - 0x70]
call fcn.0040aeea
test bl, bl
jne 0x40a8b6
mov edi, esi
jmp 0x40a9c4
lea eax, [ebp - 0x70]
call fcn.0040aeea
xor eax, eax
jmp 0x40a9e7
cmp al, 3
jne 0x40a9c4
lea edi, [ebp - 0x1d0]
call fcn.0040af1d
mov ebx, dword [ebp - 0x1d8]
lea eax, [ebx + 0x35c]
lea edi, [ebp - 0x150]
call fcn.00403316
lea eax, [ebx + 0x348]
lea edi, [ebp - 0x14c]
call fcn.00403316
lea eax, [ebx + 0x2dc]
push eax
lea eax, [ebp - 0x1d4]
push eax
push 0x10
pop ecx
call fcn.004025a5
pop ecx
pop ecx
lea edi, [ebp - 0x154]
call fcn.00403316
mov eax, dword [ebp - 0x1d4]
add eax, 0xfffffff0
call fcn.004018b2
lea eax, [ebx + 0x350]
lea edi, [ebp - 0x148]
call fcn.00403316
mov eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1d4], eax
push 0
xor eax, eax
lea edi, [ebp - 0x1c8]
call fcn.00406666
test eax, eax
jne 0x40a9f6
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x144]
push eax
add ebx, 0x64
push ebx
call fcn.004028bb
push dword [ebp - 0x1dc]
lea ebx, [ebp - 0x1d4]
call fcn.00402699
pop ecx
push dword [eax]
lea eax, [ebp - 0x78]
push eax
call fcn.0040b56d
test eax, eax
mov eax, dword [ebp - 0x1d4]
setne bl
add eax, 0xfffffff0
call fcn.004018b2
lea eax, [ebp - 0x1d0]
call fcn.0040af72
test bl, bl
jne 0x40a8b6
mov edi, dword [ebp - 0x1d8]
mov eax, dword [ebp - 0x1e0]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 0x1e0]
mov dword [edi + 0x2c], eax
call esi
push 5
push dword [edi + 0x2c]
call esi
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416201
leave
ret
lea eax, [ebp - 0x1d0]
lea esi, [ebp - 0x1c8]
call fcn.00404318
push 0
push 0x411f05
push dword [ebp - 0x1d4]
push 0xcb
push dword [0x4363fc]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
test eax, eax
jne 0x40a96b
lea eax, [ebp - 0x1d0]
call fcn.0040af72
jmp 0x40a8b6