Function at 0x1000d770
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x250
mov eax, dword [0x10038018]
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 0x1000d94b
dec eax
je 0x1000d7c9
mov eax, edi
call fcn.1000da20
mov ecx, dword [esp + 0x258]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.10010ef0
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.1000dbc0
push str.AcCore.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x1000d9b1
push 0x104
lea ecx, [esp + 0x54]
push ecx
push 0
mov byte [0x1003af94], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
test esi, esi
je 0x1000d83f
lea ebx, [esp + esi*2 + 0x4e]
movzx edx, word [ebx]
push edx
push 0x10026538
call dword [sym.imp.MSVCR100.dll_wcschr]
add esp, 8
test eax, eax
jne 0x1000d83f
sub ebx, 2
dec esi
jne 0x1000d823
lea ebx, [esp + esi*2 + 0x50]
mov eax, ebx
lea edx, [eax + 2]
jmp 0x1000d850
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000d850
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 dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_]
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 [0x1003af8c], eax
cmp word [ebx], si
je 0x1000d8c1
mov eax, ebx
lea ecx, [ecx]
movzx ecx, word [eax]
push ecx
push 0x10026540
call dword [sym.imp.MSVCR100.dll_wcschr]
add esp, 8
test eax, eax
jne 0x1000d8c1
inc esi
cmp word [ebx + esi*2], 0
lea eax, [ebx + esi*2]
jne 0x1000d8a0
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_]
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 [0x1003af90], eax
mov dword [0x1003af98], ebp
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call fcn.1000db60
push 0x10026544
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 0x1000d7a3
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
jmp 0x1000d7a3
push str.acfirst.dll_Terminating__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.1000daf0
mov eax, dword [0x1003afa4]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
push eax
call esi
add esp, 4
cmp byte [0x1003af94], 0
mov dword [0x1003afa4], 0
je 0x1000d7a3
mov ecx, dword [0x1003af90]
push ecx
call esi
mov edx, dword [0x1003af8c]
push edx
mov dword [0x1003af90], 0
call esi
add esp, 8
mov dword [0x1003af8c], 0
jmp 0x1000d7a3
mov ebx, eax
lea esi, [esp + 0x1c]
mov byte [esp + 0x20], 1
mov dword [esp + 0x24], ebx
call fcn.1000d670
mov eax, str.thisProduct
mov ecx, esi
call fcn.1000d450
lea esi, [esp + 0x1c]
mov dword [esp + 0x10], eax
mov byte [esp + 0x20], 1
mov dword [esp + 0x24], ebx
call fcn.1000d670
mov eax, str.thisProgram
mov ecx, esi
call fcn.1000d450
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000d800
test esi, esi
je 0x1000d800
call eax
mov dword [0x1003af8c], eax
call esi
jmp 0x1000d8f9