Function at 0x40b908
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e4
mov eax, dword [0x42f064]
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.0040ab3d
mov eax, dword [edi + 0x1b8]
mov dword [edi + 0x2c], eax
call fcn.00402649
mov ebx, eax
mov al, byte [edi + 0x2fb]
mov dword [ebp - 0x1dc], ebx
cmp al, 1
je 0x40b969
cmp al, 2
jne 0x40ba87
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], 0x42ab68
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
call fcn.00402733
lea esi, [ebp - 0x14]
call fcn.00402733
lea esi, [ebp - 0xc]
call fcn.00402733
push 0xb
lea esi, [edi + 0x2f4]
pop ecx
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1d8]
lea eax, [esi + 0x328]
lea edi, [ebp - 0x18]
call fcn.0040331c
lea eax, [esi + 0x320]
lea edi, [ebp - 0x14]
call fcn.0040331c
push dword [esi + 4]
mov dword [ebp - 0x10], ebx
lea ebx, [ebp - 0x70]
call fcn.0040e6df
test eax, eax
je 0x40ba78
xor ebx, ebx
cmp byte [esi + 0x2c7], bl
je 0x40ba35
lea edi, [esi + 0x68]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jne 0x40ba1e
lea ecx, [ebp - 0x1d4]
mov dword [ebp - method.CGetHDSerial.virtual_0], vtable.CGetHDSerial.0
call fcn.00403189
call fcn.0040331c
mov eax, dword [ebp - 0x1d4]
add eax, 0xfffffff0
call fcn.004018b4
push ebx
push ebx
push esi
push 0x40af32
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.0040269b
pop ecx
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.0040cccd
test eax, eax
mov eax, dword [ebp - 0x1d4]
setne bl
add eax, 0xfffffff0
call fcn.004018b4
lea eax, [ebp - 0x70]
call fcn.0040c5e6
test bl, bl
jne 0x40ba80
mov edi, esi
jmp 0x40bb8e
lea eax, [ebp - 0x70]
call fcn.0040c5e6
xor eax, eax
jmp 0x40bbb1
cmp al, 3
jne 0x40bb8e
lea edi, [ebp - 0x1d0]
call fcn.0040c619
mov ebx, dword [ebp - 0x1d8]
lea eax, [ebx + 0x334]
lea edi, [ebp - 0x150]
call fcn.0040331c
lea eax, [ebx + 0x320]
lea edi, [ebp - 0x14c]
call fcn.0040331c
lea eax, [ebx + 0x2b4]
push eax
lea eax, [ebp - 0x1d4]
push eax
push 0x10
pop ecx
call fcn.004025a7
pop ecx
pop ecx
lea edi, [ebp - 0x154]
call fcn.0040331c
mov eax, dword [ebp - 0x1d4]
add eax, 0xfffffff0
call fcn.004018b4
lea eax, [ebx + 0x328]
lea edi, [ebp - 0x148]
call fcn.0040331c
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.00406635
test eax, eax
jne 0x40bbc0
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x144]
push eax
add ebx, 0x68
push ebx
call fcn.004028bd
push dword [ebp - 0x1dc]
lea ebx, [ebp - 0x1d4]
call fcn.0040269b
pop ecx
push dword [eax]
lea eax, [ebp - 0x78]
push eax
call fcn.0040cccd
test eax, eax
mov eax, dword [ebp - 0x1d4]
setne bl
add eax, 0xfffffff0
call fcn.004018b4
lea eax, [ebp - 0x1d0]
call fcn.0040c66e
test bl, bl
jne 0x40ba80
mov edi, dword [ebp - 0x1d8]
mov eax, dword [ebp - 0x1e0]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 0x1b8]
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.00414657
leave
ret
lea eax, [ebp - 0x1d0]
lea esi, [ebp - 0x1c8]
call fcn.004042de
push 0
push 0x413fc6
push dword [ebp - 0x1d4]
push 0xcb
push dword [0x4324cc]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
test eax, eax
jne 0x40bb35
lea eax, [ebp - 0x1d0]
call fcn.0040c66e
jmp 0x40ba80