Function at 0x40f400
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x21a0
call fcn.00416c80
mov eax, dword [0x42f278]
xor eax, esp
mov dword [esp + 0x219c], eax
push ebx
push ebp
push esi
push edi
mov ebp, 1
mov ebx, ecx
mov edi, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], 0
call fcn.0040f730
test eax, eax
je 0x40f6df
push 0x1084
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00416890
push 0x100
lea ecx, [esp + 0x10ac]
push 0
push ecx
call fcn.00416890
push 0x208
lea edx, [esp + 0x11b8]
push 0
push edx
call fcn.00416890
push 0x208
lea eax, [esp + 0x13cc]
push 0
push eax
call fcn.00416890
push 0x800
lea ecx, [esp + 0x19e0]
push 0
push ecx
call fcn.00416890
push 0x400
lea edx, [esp + 0x15ec]
push 0
push edx
call fcn.00416890
add esp, 0x48
push ebp
call dword [0x4377d4]
test eax, eax
je 0x40f6df
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10a4]
push ecx
push ebp
push str.CurrentLoginUser
mov dword [esp + 0x28], 0x80
call dword [0x4377e4]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
jne 0x40f501
push 0x42bb60
lea edx, [esp + 0x10a0]
push edx
call esi
lea eax, [esp + 0x109c]
push eax
call dword [0x4377d8]
push 0x42c7d0
lea ecx, [esp + 0x1c]
push ecx
call esi
push 0x42c7d8
lea edx, [esp + 0x22]
push edx
call esi
push 0x42c7e0
lea eax, [esp + 0x2a]
push eax
call esi
push 0x42c7e8
lea ecx, [esp + 0x32]
push ecx
call esi
push 0x104
lea edx, [esp + 0x11a0]
push edx
push 0
mov dword [esp + 0x10a4], 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40f572
push 0x42bb60
lea eax, [esp + 0x11a0]
push eax
call esi
lea ecx, [esp + 0x119c]
push 0x5c
push ecx
call fcn.00412984
add esp, 8
test eax, eax
je 0x40f5a8
add eax, 2
push eax
lea edx, [esp + 0x13a8]
push edx
call esi
lea eax, [esp + 0x13a4]
push eax
lea ecx, [esp + 0x11a0]
push ecx
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x10
lea edx, [esp + 0x11a0]
push edx
lea eax, [esp + 0x3e]
push eax
call ebp
push 0
lea ecx, [esp + 0x5c]
push ecx
push edi
call dword [0x4377e8]
push 0x42bb60
lea edx, [esp + 0x87c]
push edx
call esi
push 0x42bb60
lea eax, [esp + 0xc8c]
push eax
call esi
cmp dword [esp + 0x21b4], 1
jne 0x40f5ff
mov eax, dword [ebx + 0x418]
mov esi, eax
jmp 0x40f603
mov esi, dword [ebx]
mov eax, ebx
test esi, esi
je 0x40f6d5
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edi, [eax + 4]
cmp dword [esp + 0x21b4], 1
mov eax, esi
je 0x40f626
lea eax, [esi + 0x418]
push 0x104
push eax
lea ecx, [esp + 0x15b4]
push ecx
call ebp
push 0
lea edx, [esp + 0x46c]
push edx
lea eax, [esp + 0x15b4]
push eax
call dword [0x4377e8]
lea ecx, [esp + 0x18]
push ecx
call dword [0x4377dc]
test eax, eax
jne 0x40f661
mov dword [esp + 0x10], eax
lea edx, [esp + 0xc88]
push edx
lea eax, [esp + 0x87c]
push eax
lea ecx, [esp + 0x470]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x46]
push eax
lea ecx, [esp + 0x42]
push ecx
lea edx, [esp + 0x3e]
push edx
lea eax, [esp + 0x3a]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x19d0]
push str.OK_Log___s____s____s____s____s____s____s____s____s__n
push edx
call fcn.004112ba
add esp, 0x2c
lea eax, [esp + 0x19ac]
push eax
call ebx
cmp dword [esp + 0x21b4], 1
jne 0x40f6c8
mov esi, dword [esi + 0x820]
jmp 0x40f6ca
mov esi, dword [edi]
add edi, 4
test esi, esi
jne 0x40f614
call dword [0x4377e0]
mov ebp, dword [esp + 0x10]
mov eax, dword [0x4377d0]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x40f6fb
push eax
call esi
mov dword [0x4377d0], 0
mov eax, dword [0x4377cc]
test eax, eax
je 0x40f711
push eax
call esi
mov dword [0x4377cc], 0
mov ecx, dword [esp + 0x21ac]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.004104f3
add esp, 0x21a0
ret