Function at 0x1000cbd0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x250
mov eax, dword [0x10037018]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebp
mov ebp, dword [esp + 0x258]
push esi
push edi
mov edi, dword [esp + 0x264]
mov eax, edi
sub eax, 0
je 0x1000cdaa
dec eax
je 0x1000cc29
mov eax, edi
call fcn.1000cb60
mov ecx, dword [esp + 0x258]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.1001032e
add esp, 0x250
ret 0xc
push ebx
push 4
lea eax, [esp + 0x1c]
push eax
push 0
mov dword [esp + 0x24], 2
call dword [sym.imp.MSVCR100.dll__get_heap_handle]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
call fcn.1000cab0
push str.AcCore.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x1000ce10
push 0x104
lea ecx, [esp + 0x54]
push ecx
push 0
mov byte [0x10039f70], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
test esi, esi
je 0x1000cc9f
lea ebx, [esp + esi*2 + 0x4e]
movzx edx, word [ebx]
push edx
push 0x10025538
call dword [sym.imp.MSVCR100.dll_wcschr]
add esp, 8
test eax, eax
jne 0x1000cc9f
sub ebx, 2
dec esi
jne 0x1000cc83
lea ebx, [esp + esi*2 + 0x50]
mov eax, ebx
lea edx, [eax + 2]
jmp 0x1000ccb0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000ccb0
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10010280
push ebx
push esi
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
mov eax, dword [esp + 0x20]
xor esi, esi
add esp, 0x10
mov dword [0x10039f68], eax
cmp word [ebx], si
je 0x1000cd21
mov eax, ebx
lea esp, [esp]
movzx ecx, word [eax]
push ecx
push 0x10025540
call dword [sym.imp.MSVCR100.dll_wcschr]
add esp, 8
test eax, eax
jne 0x1000cd21
inc esi
cmp word [ebx + esi*2], 0
lea eax, [ebx + esi*2]
jne 0x1000cd00
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10010280
push esi
push ebx
lea ecx, [esi + 1]
push ecx
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
mov eax, dword [esp + 0x24]
add esp, 0x14
xor ecx, ecx
mov word [eax + esi*2], cx
push ebp
mov dword [0x10039f6c], eax
mov dword [0x10039f74], ebp
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call fcn.1000caa0
push 0x10025544
push 0
lea edx, [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.MSVCR100.dll__wgetenv_s]
add esp, 0x10
cmp dword [esp + 0x14], 0
pop ebx
je 0x1000cc03
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
jmp 0x1000cc03
push str.acfirst.dll_Terminating__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.1000c9e0
mov eax, dword [0x10039f80]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
push eax
call esi
add esp, 4
cmp byte [0x10039f70], 0
mov dword [0x10039f80], 0
je 0x1000cc03
mov ecx, dword [0x10039f6c]
push ecx
call esi
mov edx, dword [0x10039f68]
push edx
mov dword [0x10039f6c], 0
call esi
add esp, 8
mov dword [0x10039f68], 0
jmp 0x1000cc03
mov ebx, eax
lea esi, [esp + 0x1c]
mov byte [esp + 0x20], 1
mov dword [esp + 0x24], ebx
call fcn.1000ceb0
mov eax, str.thisProduct
mov ecx, esi
call fcn.1000d180
lea esi, [esp + 0x1c]
mov dword [esp + 0x10], eax
mov byte [esp + 0x20], 1
mov dword [esp + 0x24], ebx
call fcn.1000ceb0
mov eax, str.thisProgram
mov ecx, esi
call fcn.1000d180
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000cc60
test esi, esi
je 0x1000cc60
call eax
mov dword [0x10039f68], eax
call esi
jmp 0x1000cd58