Function at 0x40aa38
Capabilities:
Accept command line arguments
Create thread

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
mov ebx, str.Dekart
push edi
mov esi, 0x414144
xor edi, edi
push ebx
push esi
mov dword [esp + 0x18], edi
mov dword [0x419bf8], eax
call fcn.0040c780
pop ecx
test eax, eax
pop ecx
je 0x40aa80
push ebx
call fcn.0040b470
add eax, 0x414145
push eax
push 0x419894
call fcn.0040b4f0
add esp, 0xc
jmp 0x40aa8d
push esi
push 0x419894
call fcn.0040b4f0
pop ecx
pop ecx
lea eax, [esp + 0x10]
push eax
call section..text
test eax, eax
pop ecx
jne 0x40aae7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.WinMain._1.__08X.
push 0x4182fc
push 1
call fcn.00407279
add esp, 0x10
call esi
push eax
push 0xffffffffffffffff
push edi
push dword [0x4152f8]
push 0x9d6
call fcn.00406f9a
add esp, 0x10
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00407417
add esp, 0xc
jmp 0x40af05
push str.SOFTWAREDekart_
call dword [0x4182d0]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
pop ecx
push edi
push str.logfile
call ebp
push eax
call fcn.004011dd
add esp, 0xc
mov esi, 0x4157dc
test eax, eax
je 0x40ab50
push 3
push esi
mov dword [esp + 0x1c], 1
call fcn.004070ab
push 3
push str.pdapi
call fcn.004070ab
push ebx
push edi
push 1
lea eax, [esp + 0x30]
push 4
push eax
push 1
push dword [0x4152d8]
push 0x419894
call dword [0x4182f8]
add esp, 0x30
push edi
push esi
call fcn.00407165
push edi
push esi
call fcn.00406fb3
mov esi, dword [sym.imp.USER32.dll_GetDesktopWindow]
add esp, 0x10
push 0x89abcdef
push 0x414144
call esi
push eax
call fcn.00407598
mov ebx, eax
add esp, 0xc
cmp ebx, edi
jne 0x40aebb
push 0x89abcdef
push str.Dekart_Private_Disk_Light
call esi
push eax
call fcn.00407598
mov ebx, eax
add esp, 0xc
cmp ebx, edi
jne 0x40aebb
push edi
push str.unload
call ebp
push eax
call fcn.004011dd
add esp, 0xc
test eax, eax
jne 0x40aead
push 0x414144
push 0xffff
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
jne 0x40abfb
call ebx
push eax
push str.WinMain._3.__08X.
push 0x4182fc
push 1
call fcn.00407279
add esp, 0x10
jmp 0x40aead
call ebx
test eax, eax
je 0x40ac42
call ebx
push eax
push str.WinMain._4.__08X.
push 0x4182fc
push 1
call fcn.00407279
add esp, 0x10
call ebx
push eax
push 0xffffffffffffffff
push edi
push dword [0x4152ec]
push 0x9d6
call fcn.00406f9a
add esp, 0x10
push eax
call esi
push eax
call fcn.00407417
add esp, 0xc
jmp 0x40aead
lea eax, [esp + 0x28]
push eax
call fcn.0040b176
test al, al
pop ecx
jne 0x40ac85
lea eax, [esp + 0x28]
push eax
call fcn.0040b176
test al, al
pop ecx
jne 0x40ac85
call ebx
push eax
push str.WinMain._5.__08X.
push 0x4182fc
push 1
call fcn.00407279
add esp, 0x10
call ebx
push eax
push 0xffffffffffffffff
push edi
push dword [0x4152fc]
jmp 0x40ac24
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0xc0
push edi
push 0x419938
call fcn.0040b6c0
push 0x30
mov eax, dword [0x419bf8]
pop ebp
mov dword [0x419940], eax
push 0x28
mov dword [0x419938], ebp
pop ebx
mov dword [0x419944], 0x66
push 0xffffffffffffffff
push edi
push 0x515
mov dword [0x41993c], ebx
call fcn.00406e92
push eax
push 0x4199f8
call fcn.0040b4f0
mov eax, dword [0x419bf8]
push 0xffffffffffffffff
push edi
push 0x912
mov dword [0x41994c], 0x4199f8
mov dword [0x419950], 0x40931e
mov dword [0x419968], ebp
mov dword [0x41996c], ebx
mov dword [0x419970], eax
mov dword [0x419974], 0x6b
call fcn.00406e92
push eax
push 0x419a78
call fcn.0040b4f0
mov eax, dword [0x419bf8]
push 0xffffffffffffffff
push edi
push 0x516
mov dword [0x41997c], 0x419a78
mov dword [0x419980], 0x409c62
mov dword [0x419998], ebp
mov dword [0x41999c], ebx
mov dword [0x4199a0], eax
mov dword [0x4199a4], 0x9c
call fcn.00406e92
add esp, 0x40
mov ebx, 0x419af8
push eax
push ebx
call fcn.0040b4f0
push 0x34
mov dword [0x4199ac], ebx
pop ebx
mov ebp, 0x4196c8
push ebx
push edi
push ebp
mov dword [0x4199b0], 0x40995c
call fcn.0040b6c0
add esp, 0x14
mov dword [0x4196c8], ebx
mov dword [0x4196cc], 0x308
call esi
mov dword [0x4196d0], eax
mov eax, dword [0x419bf8]
push 0x419890
push edi
mov dword [0x4196d4], eax
mov dword [0x4196e0], 3
mov dword [0x4196e4], edi
mov dword [0x4196ec], 0x408ab3
mov dword [0x4196e8], 0x419938
call esi
push eax
push 0x407571
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x419c04], eax
push str.Dekart
mov ebx, 0x415328
push ebx
call fcn.0040c780
pop ecx
test eax, eax
pop ecx
je 0x40ae48
push str.Dekart
call fcn.0040b470
add eax, ebx
push eax
push ebx
call fcn.0040b4f0
add esp, 0xc
mov al, byte [0x415328]
cmp al, 0x41
jl 0x40ae31
cmp al, 0x5a
jle 0x40ae48
cmp al, 0x61
jl 0x40ae39
cmp al, 0x7a
jle 0x40ae48
push 0x415329
push ebx
call fcn.0040b4f0
pop ecx
pop ecx
jmp 0x40ae24
push edi
push str.path
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.004011dd
add esp, 0xc
test eax, eax
jne 0x40ae87
push edi
push edi
push str.Dekart
push str.www.dekart.com
push edi
push ebx
call esi
push eax
push dword [0x4191b0]
push dword [0x419bf8]
call dword [0x4182f4]
add esp, 0x24
push ebp
call dword [sym.imp.COMCTL32.dll_PropertySheetA]
push dword [0x419c04]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x419c04], edi
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
pop edi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
jmp 0x40af07
mov dword [esp + 0x18], 0x418
call ebp
push eax
call fcn.0040b470
inc eax
pop ecx
mov dword [esp + 0x1c], eax
call ebp
push eax
push str.WinMain._2.__s.
push 0x4182fc
push 3
mov dword [esp + 0x30], eax
call fcn.00407279
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push edi
push 0x4a
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10