Function at 0x40c580
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x21a0
call fcn.0041ec80
mov eax, dword [0x42827c]
xor eax, esp
mov dword [esp + 0x219c], eax
push ebx
push ebp
xor ebp, ebp
cmp dword [0x4302c8], ebp
push esi
push edi
mov ebx, ecx
mov edi, edx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], ebp
je 0x40c5c8
mov eax, dword [0x4302cc]
cmp eax, ebp
je 0x40c5c8
mov ecx, dword [0x4302d0]
push ecx
call eax
call fcn.0040c8e0
test eax, eax
je 0x40c879
push 0x1084
lea edx, [esp + 0x1c]
push ebp
push edx
call fcn.004130d0
push 0x100
lea eax, [esp + 0x10ac]
push ebp
push eax
call fcn.004130d0
push 0x208
lea ecx, [esp + 0x11b8]
push ebp
push ecx
call fcn.004130d0
push 0x208
lea edx, [esp + 0x13cc]
push ebp
push edx
call fcn.004130d0
push 0x800
lea eax, [esp + 0x19e0]
push ebp
push eax
call fcn.004130d0
push 0x400
lea ecx, [esp + 0x15ec]
push ebp
push ecx
call fcn.004130d0
add esp, 0x48
push 1
call dword [0x4302b0]
test eax, eax
je 0x40c879
push ebp
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x10a4]
push eax
push 1
push str.CurrentLoginUser
mov dword [esp + 0x28], 0x80
call dword [0x4302c0]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
jne 0x40c693
push 0x424bd0
lea ecx, [esp + 0x10a0]
push ecx
call esi
lea edx, [esp + 0x109c]
push edx
call dword [0x4302b4]
push 0x4256fc
lea eax, [esp + 0x1c]
push eax
call esi
push 0x425704
lea ecx, [esp + 0x22]
push ecx
call esi
push 0x42570c
lea edx, [esp + 0x2a]
push edx
call esi
push 0x425714
lea eax, [esp + 0x32]
push eax
call esi
push 0x104
lea ecx, [esp + 0x11a0]
push ecx
push ebp
mov dword [esp + 0x10a4], 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40c703
push 0x424bd0
lea edx, [esp + 0x11a0]
push edx
call esi
lea eax, [esp + 0x119c]
push 0x5c
push eax
call fcn.00410ae5
add esp, 8
cmp eax, ebp
je 0x40c739
add eax, 2
push eax
lea ecx, [esp + 0x13a8]
push ecx
call esi
lea edx, [esp + 0x13a4]
push edx
lea eax, [esp + 0x11a0]
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x10
lea ecx, [esp + 0x11a0]
push ecx
lea edx, [esp + 0x3e]
push edx
call ebp
push 0
lea eax, [esp + 0x5c]
push eax
push edi
call dword [0x4302c4]
push 0x424bd0
lea ecx, [esp + 0x87c]
push ecx
call esi
push 0x424bd0
lea edx, [esp + 0xc8c]
push edx
call esi
cmp dword [esp + 0x21b4], 1
jne 0x40c790
mov eax, dword [ebx + 0x418]
mov esi, eax
jmp 0x40c794
mov esi, dword [ebx]
mov eax, ebx
test esi, esi
je 0x40c871
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edi, [eax + 4]
jmp 0x40c7b0
cmp dword [esp + 0x21b4], 1
mov eax, esi
je 0x40c7c2
lea eax, [esi + 0x418]
push 0x104
push eax
lea eax, [esp + 0x15b4]
push eax
call ebp
push 0
lea ecx, [esp + 0x46c]
push ecx
lea edx, [esp + 0x15b4]
push edx
call dword [0x4302c4]
lea eax, [esp + 0x18]
push eax
call dword [0x4302b8]
test eax, eax
jne 0x40c7fd
mov dword [esp + 0x10], eax
lea ecx, [esp + 0xc88]
push ecx
lea edx, [esp + 0x87c]
push edx
lea eax, [esp + 0x470]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x46]
push edx
lea eax, [esp + 0x42]
push eax
lea ecx, [esp + 0x3e]
push ecx
lea edx, [esp + 0x3a]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x19d0]
push str.OK_Log___s____s____s____s____s____s____s____s____s__n
push ecx
call fcn.0040dcca
add esp, 0x2c
lea edx, [esp + 0x19ac]
push edx
call ebx
cmp dword [esp + 0x21b4], 1
jne 0x40c864
mov esi, dword [esi + 0x820]
jmp 0x40c866
mov esi, dword [edi]
add edi, 4
test esi, esi
jne 0x40c7b0
call dword [0x4302bc]
xor ebp, ebp
mov eax, dword [0x4302ac]
cmp eax, ebp
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x40c891
push eax
call esi
mov dword [0x4302ac], ebp
mov eax, dword [0x4302a8]
cmp eax, ebp
je 0x40c8a3
push eax
call esi
mov dword [0x4302a8], ebp
mov eax, dword [0x4302c8]
cmp eax, ebp
je 0x40c8bb
cmp dword [0x4302cc], ebp
je 0x40c8bb
push 0x4302d0
call eax
mov ecx, dword [esp + 0x21ac]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040d036
add esp, 0x21a0
ret