Function at 0x40d9d0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x21a0
call fcn.00415280
mov eax, dword [0x42d278]
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.0040dd00
test eax, eax
je 0x40dcaf
push 0x1084
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00414e60
push 0x100
lea ecx, [esp + 0x10ac]
push 0
push ecx
call fcn.00414e60
push 0x208
lea edx, [esp + 0x11b8]
push 0
push edx
call fcn.00414e60
push 0x208
lea eax, [esp + 0x13cc]
push 0
push eax
call fcn.00414e60
push 0x800
lea ecx, [esp + 0x19e0]
push 0
push ecx
call fcn.00414e60
push 0x400
lea edx, [esp + 0x15ec]
push 0
push edx
call fcn.00414e60
add esp, 0x48
push ebp
call dword [0x4357cc]
test eax, eax
je 0x40dcaf
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 [0x4357dc]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
jne 0x40dad1
push 0x429b60
lea edx, [esp + 0x10a0]
push edx
call esi
lea eax, [esp + 0x109c]
push eax
call dword [0x4357d0]
push 0x42a698
lea ecx, [esp + 0x1c]
push ecx
call esi
push 0x42a6a0
lea edx, [esp + 0x22]
push edx
call esi
push 0x42a6a8
lea eax, [esp + 0x2a]
push eax
call esi
push 0x42a6b0
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 0x40db42
push 0x429b60
lea eax, [esp + 0x11a0]
push eax
call esi
lea ecx, [esp + 0x119c]
push 0x5c
push ecx
call fcn.00410f54
add esp, 8
test eax, eax
je 0x40db78
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 [0x4357e0]
push 0x429b60
lea edx, [esp + 0x87c]
push edx
call esi
push 0x429b60
lea eax, [esp + 0xc8c]
push eax
call esi
cmp dword [esp + 0x21b4], 1
jne 0x40dbcf
mov eax, dword [ebx + 0x418]
mov esi, eax
jmp 0x40dbd3
mov esi, dword [ebx]
mov eax, ebx
test esi, esi
je 0x40dca5
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edi, [eax + 4]
cmp dword [esp + 0x21b4], 1
mov eax, esi
je 0x40dbf6
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 [0x4357e0]
lea ecx, [esp + 0x18]
push ecx
call dword [0x4357d4]
test eax, eax
jne 0x40dc31
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.0040f88a
add esp, 0x2c
lea eax, [esp + 0x19ac]
push eax
call ebx
cmp dword [esp + 0x21b4], 1
jne 0x40dc98
mov esi, dword [esi + 0x820]
jmp 0x40dc9a
mov esi, dword [edi]
add edi, 4
test esi, esi
jne 0x40dbe4
call dword [0x4357d8]
mov ebp, dword [esp + 0x10]
mov eax, dword [0x4357c8]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x40dccb
push eax
call esi
mov dword [0x4357c8], 0
mov eax, dword [0x4357c4]
test eax, eax
je 0x40dce1
push eax
call esi
mov dword [0x4357c4], 0
mov ecx, dword [esp + 0x21ac]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0040eac3
add esp, 0x21a0
ret