Function at 0x409c02
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4341fc]
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x4341fc
mov dword [ebp - 0x40], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0x67
lea eax, [ebp - 0x18]
push eax
call fcn.004027b2
mov eax, dword [ebx + 0x68]
push ecx
sub eax, 0x10
mov esi, esp
call fcn.00402ae1
add eax, 0x10
lea ecx, [ebx + 0x214]
mov dword [esi], eax
mov dword [ebp - 0x38], ecx
call fcn.0040353d
test eax, eax
jne 0x409c7e
mov esi, dword [ebp - 0x18]
push 0x10
push dword [ebx + 0x54]
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esi - 0x10]
call fcn.004018b2
xor eax, eax
jmp 0x40a502
movzx eax, word [ebx + 0x31e]
mov dword [ebp - 0x44], eax
cmp eax, 0x102
jne 0x409cb3
call fcn.00403f95
test eax, eax
je 0x409cb3
push 0x10
push dword [ebx + 0x54]
push str.Microsoft_Excel
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
jmp 0x409c72
mov eax, dword [ebx + 0x34c]
cmp dword [eax - 0xc], 0
jle 0x409d79
xor eax, eax
lea esi, [ebp - 0x48]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x6c], 0x42eab0
mov dword [ebp - 0x4c], eax
call fcn.00402731
lea eax, [ebx + 0x34c]
mov edi, esi
call fcn.00403316
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x28], eax
push 0
xor eax, eax
lea edi, [ebp - 0x64]
call fcn.00406666
test eax, eax
jne 0x409d2d
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
call fcn.004018b2
cmp dword [ebp - 0x58], esi
je 0x409d7b
push dword [ebp - 0x58]
call fcn.004259d6
jmp 0x409d7b
lea eax, [ebp - 0x6c]
lea esi, [ebp - 0x64]
call fcn.00404318
xor esi, esi
push esi
push 0x411f05
push dword [ebp - 0x28]
push 0xcc
push dword [0x4363fc]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, esi
jne 0x409d13
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
call fcn.004018b2
cmp dword [ebp - 0x58], esi
je 0x409cab
push dword [ebp - 0x58]
call fcn.004259d6
jmp 0x409cab
xor esi, esi
xor eax, eax
cmp dword [ebx + 0x2fc], esi
ja 0x409d8e
cmp word [ebx + 0x2f6], si
jbe 0x409de2
call fcn.004020c0
cmp eax, esi
jne 0x409dcd
cmp byte [ebx + 0x2ee], 0
je 0x409db8
cmp dword [ebx + 0x2fc], esi
jbe 0x409dcd
push 0x75
lea eax, [ebp - 0x18]
push eax
call fcn.004027b2
jmp 0x409c5d
call fcn.004021b3
cmp eax, esi
jne 0x409dcd
cmp dword [ebx + 0x2fc], esi
jbe 0x409dcd
push 0x76
jmp 0x409daa
mov ecx, dword [ebx + 0x2fc]
cmp ecx, esi
jbe 0x409de2
cmp eax, ecx
jbe 0x409de2
push 0x854
jmp 0x409daa
mov byte [ebp - 0x1d], 0
cmp eax, esi
jbe 0x409e09
cmp word [ebx + 0x2f6], si
jbe 0x409e09
mov ecx, dword [ebx + 0x2f8]
cmp ecx, esi
je 0x409e03
jbe 0x409e09
cmp eax, ecx
jae 0x409e09
mov byte [ebp - 0x1d], 1
jmp 0x409e18
mov ecx, ebx
call fcn.0040a73e
test eax, eax
je 0x409cab
cmp dword [ebx + 0x300], esi
jbe 0x409efe
cmp byte [ebx + 0x2f1], 0
jne 0x409eaa
mov eax, dword [ebx + 0x64]
sub eax, 0x10
call fcn.00402ae1
add eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x64]
cmp dword [eax - 0xc], esi
jne 0x409e68
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], vtable.CGetHDSerial.0
call fcn.00403185
lea edi, [ebp - 0x24]
call fcn.00403316
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004018b2
mov esi, dword [ebp - 0x24]
push ecx
lea eax, [esi - 0x10]
mov edi, esp
call fcn.00402ae1
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebx + 0x350]
push ecx
sub eax, 0x10
mov edi, esp
call fcn.00402ae1
add eax, 0x10
lea ecx, [ebx + 0x2dc]
mov dword [edi], eax
call fcn.00401d0b
pop ecx
mov edi, eax
pop ecx
lea eax, [esi - 0x10]
call fcn.004018b2
jmp 0x409edc
push ecx
mov esi, esp
push 0x42c8e4
call fcn.00402746
mov eax, dword [ebx + 0x350]
push ecx
sub eax, 0x10
mov esi, esp
call fcn.00402ae1
add eax, 0x10
lea ecx, [ebx + 0x2dc]
mov dword [esi], eax
call fcn.00401d0b
pop ecx
pop ecx
mov edi, eax
test edi, edi
jns 0x409eea
push 0x853
jmp 0x409daa
cmp edi, dword [ebx + 0x300]
jl 0x409efc
push 0x855
jmp 0x409daa
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
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 + 0x1e0]
mov dword [ebp - 0x28], esi
call fcn.0040642d
cmp dword [ebx + 0x58], 0xffffffff
jle 0x409f64
cmp byte [ebx + 0x322], 2
jb 0x409f64
lea eax, [ebx + 0x354]
lea edi, [ebx + 0x204]
call fcn.00403316
lea eax, [ebx + 0x358]
lea edi, [ebx + 0x208]
call fcn.00403316
jmp 0x409f83
mov esi, 0x42c8e4
push esi
lea eax, [ebx + 0x204]
push eax
call fcn.004028bb
push esi
lea eax, [ebx + 0x208]
push eax
call fcn.004028bb
lea edi, [ebx + 0x20c]
lea eax, [ebx + 0x68]
call fcn.00403316
xor eax, eax
inc eax
push eax
xor esi, esi
push esi
push dword [ebx + 0x1e0]
mov dword [ebx + 0x200], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 0x28]
push 5
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.004019ee
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 0x409b70
push esi
push esi
mov dword [ebx + 0x60], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x60], esi
jne 0x40a015
push 0x68
lea eax, [ebp - 0x18]
push eax
call fcn.004027b2
mov esi, dword [ebp - 0x18]
push 0x10
push dword [ebx + 0x54]
push esi
push dword [ebx + 4]
jmp 0x409c69
movzx eax, byte [ebx + 0x2ec]
push 5
push dword [ebx + 0x1b8]
mov dword [0x4365ac], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 0x1b8]
call fcn.00412837
mov dword [ebx + 0x210], eax
cmp eax, esi
jne 0x40a056
push 0x10
push dword [ebx + 0x54]
push 0x42e5c4
push dword [ebx + 4]
jmp 0x409ca5
movzx edx, word [ebx + 0x320]
mov ecx, dword [eax]
push edx
movzx edx, word [ebx + 0x31e]
push edx
push dword [ebx + 0x2d4]
push dword [ebx + 0x360]
push eax
call dword [ecx + 0x14]
xor ecx, ecx
test eax, eax
setns cl
mov dword [ebp - 0x24], ecx
cmp ecx, esi
je 0x40a0a3
mov eax, dword [ebx + 0x210]
mov dword [ebx + 0x1d8], eax
lea eax, [ebx + 0x1b4]
push eax
call fcn.00408c0a
jmp 0x40a1df
push 0x42cda2
lea esi, [ebp - 0x1c]
call fcn.00402777
mov eax, dword [ebp - 0x44]
cmp eax, 0x101
jne 0x40a0c1
push str.Microsoft_Office_Word
jmp 0x40a121
cmp eax, 0x102
jne 0x40a0cf
push str.Microsoft_Office_Excel
jmp 0x40a121
cmp eax, 0x104
jne 0x40a0dd
push str.Microsoft_Office_PowerPoint
jmp 0x40a121
cmp eax, 0x108
jne 0x40a0eb
push str.Microsoft_Office_Project
jmp 0x40a121
cmp eax, 0x110
jne 0x40a0f9
push str.Microsoft_Office_Visio
jmp 0x40a121
cmp eax, 0x401
jne 0x40a107
push 0x42e6d4
jmp 0x40a121
cmp eax, 0x402
jne 0x40a115
push 0x42e6e4
jmp 0x40a121
cmp eax, 0x403
jne 0x40a12a
push str.qW
lea eax, [ebp - 0x1c]
push eax
call fcn.004028bb
push 0x42e704
lea esi, [ebp - 0x34]
call fcn.00402777
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x1c]
call fcn.0040342b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a15a
push 0x80004005
call fcn.00401759
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [esi - 0xc]
add eax, 0x10
mov edi, 0x42e70c
push edi
mov dword [ebp - 0x2c], eax
call fcn.00416b1e
pop ecx
mov ecx, eax
push esi
lea eax, [ebp - 0x2c]
push edi
push eax
mov eax, ebx
mov ebx, ecx
call fcn.0040344f
lea eax, [ebp - 0x34]
add esp, 0xc
push eax
lea edi, [ebp - 0x2c]
lea eax, [ebp - 0x30]
call fcn.004033f8
mov eax, dword [eax]
pop ecx
push 0x10
push dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.004018b2
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
call fcn.004018b2
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
call fcn.004018b2
lea eax, [esi - 0x10]
call fcn.004018b2
mov ebx, dword [ebp - 0x40]
xor esi, esi
push dword [ebx + 0x360]
call fcn.00416b39
pop ecx
mov dword [ebx + 0x360], esi
cmp dword [ebp - 0x24], esi
je 0x40a4bf
cmp byte [ebx + 0x2ef], 0
je 0x40a249
cmp byte [ebp - 0x1d], 0
jne 0x40a249
lea edi, [ebx + 0x64]
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jne 0x40a249
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x3c], vtable.CGetHDSerial.0
call fcn.00403185
call fcn.00403316
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.004018b2
push esi
push esi
push ebx
push 0x409ba3
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x35c]
sub eax, 0x10
call fcn.00402ae1
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x354]
cmp dword [eax - 0xc], esi
jle 0x40a2db
push 0x42e734
lea esi, [ebp - 0x2c]
call fcn.00402777
push 0x42e738
lea esi, [ebp - 0x34]
call fcn.00402777
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebx + 0x354]
push eax
mov edi, esi
lea eax, [ebp - 0x3c]
call fcn.004033f8
mov edi, eax
pop ecx
lea eax, [ebp - 0x30]
call fcn.004033f8
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0040349a
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.004018b2
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.004018b2
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
call fcn.004018b2
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
call fcn.004018b2
xor esi, esi
jmp 0x40a2e4
lea eax, [ebp - 0x1c]
push eax
call fcn.0040b50a
push dword [ebp - 0x1c]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [ebx + 0x2ed], 0
jne 0x40a42f
cmp byte [ebx + 0x322], 2
push ecx
jb 0x40a342
mov eax, dword [ebx + 0x358]
sub eax, 0x10
mov edi, esp
call fcn.00402ae1
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebx + 0x354]
push ecx
sub eax, 0x10
mov edi, esp
call fcn.00402ae1
add eax, 0x10
mov dword [edi], eax
push dword [0x4363f8]
mov edi, dword [ebp - 0x38]
call fcn.00403ee6
jmp 0x40a368
mov esi, esp
mov edi, 0x42c8e4
push edi
call fcn.00402746
push ecx
mov esi, esp
push edi
call fcn.00402746
push dword [0x4363f8]
mov edi, dword [ebp - 0x38]
call fcn.00403ee6
xor esi, esi
cmp eax, esi
je 0x40a3c3
cmp eax, 2
je 0x40a37a
cmp eax, 3
je 0x40a37a
push 0x66
jmp 0x40a37c
push 0x77
lea eax, [ebp - 0x18]
push eax
call fcn.004027b2
mov edi, dword [ebp - 0x18]
push 0x10
push dword [ebx + 0x54]
push edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
push esi
push dword [ebx + 0x1e0]
mov dword [ebx + 0x200], 2
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004018b2
lea eax, [edi - 0x10]
jmp 0x409c72
push dword [ebp - 0x38]
call fcn.00403f73
test al, al
jne 0x40a41e
mov esi, dword [ebp - 0x38]
call fcn.00403f5c
push 0x66
lea eax, [ebp - 0x18]
push eax
call fcn.004027b2
mov esi, dword [ebp - 0x18]
push 0x10
push dword [ebx + 0x54]
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
push 0
push dword [ebx + 0x1e0]
mov dword [ebx + 0x200], 2
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004018b2
jmp 0x409c6f
push esi
push 0x3e8
push 3
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [ebp - 0x28]
push esi
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x44]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push esi
push 0x320
push 4
push dword [ebx + 4]
mov dword [ebx + 0x58], eax
call edi
cmp byte [ebp - 0x1d], 0
je 0x40a470
movzx eax, word [ebx + 0x2f6]
imul eax, eax, 0x3e8
push esi
push eax
push 2
push dword [ebx + 4]
call edi
mov eax, dword [ebx + 0x354]
cmp dword [eax - 0xc], esi
jne 0x40a4b2
mov edx, dword [ebx + 4]
lea esi, [ebx + 0x70]
mov ecx, esi
call fcn.004064df
push 0xa
lea edi, [ebx + 0x6c]
pop ebx
call fcn.004085ee
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x40]
push 0
push 0x3e8
push 6
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004018b2
jmp 0x40a4f4
push 0x7b
lea eax, [ebp - 0x18]
push eax
call fcn.004027b2
push 0x10
push dword [ebx + 0x54]
push dword [ebp - 0x18]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
push esi
push dword [ebx + 0x1e0]
mov dword [ebx + 0x200], 2
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004018b2
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416201
leave
ret