Function at 0x65bf23e0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x27c
mov eax, dword [0x65c00300]
xor eax, esp
mov dword [esp + 0x278], eax
mov eax, dword [esp + 0x284]
sub eax, 0
push ebp
mov ebp, dword [esp + 0x284]
mov dword [esp + 4], ebp
je 0x65bf265c
sub eax, 1
jne 0x65bf26e3
push esi
push edi
push str.acfirst.dll_Initializing__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.65bf4660
push 0x3f8
call dword [sym.imp.MSVCR80.dll__set_sbh_threshold]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 4
push 0
call edi
push str.thisProduct
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.65bf13c0
mov ecx, eax
call fcn.65bf1680
push 0
mov esi, eax
call edi
push str.thisProgram
push 1
push eax
lea ecx, [esp + 0x50]
call fcn.65bf13c0
mov ecx, eax
call fcn.65bf1680
test esi, esi
mov edi, eax
je 0x65bf2496
test edi, edi
je 0x65bf2496
call esi
mov dword [0x65c0033c], eax
call edi
mov dword [0x65c00340], eax
jmp 0x65bf2598
push 0x104
lea eax, [esp + 0x7c]
push eax
push 0
mov byte [0x65c00344], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebp, dword [sym.imp.MSVCR80.dll_wcschr]
mov esi, eax
test esi, esi
je 0x65bf24dc
lea edi, [esp + esi*2 + 0x76]
nop
movzx ecx, word [edi]
push ecx
push 0x65bfc338
call ebp
add esp, 8
test eax, eax
jne 0x65bf24dc
sub esi, 1
sub edi, 2
test esi, esi
jne 0x65bf24c0
lea edi, [esp + esi*2 + 0x78]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x65bf24e5
sub eax, edx
sar eax, 1
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov edx, eax
add esp, 4
mov dword [0x65c0033c], eax
mov ecx, edi
sub edx, edi
jmp 0x65bf2520
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x65bf2520
xor esi, esi
cmp word [edi], si
je 0x65bf255f
mov eax, edi
jmp 0x65bf2540
movzx eax, word [eax]
push eax
push 0x65bfc3f8
call ebp
add esp, 8
test eax, eax
jne 0x65bf255f
add esi, 1
cmp word [edi + esi*2], 0
lea eax, [edi + esi*2]
jne 0x65bf2540
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
push esi
push edi
push eax
mov dword [0x65c00340], eax
call dword [sym.imp.MSVCR80.dll_wcsncpy]
mov eax, dword [0x65c00340]
mov ebp, dword [esp + 0x1c]
add esp, 0x10
mov word [eax + esi*2], 0
mov dword [0x65c0032c], ebp
call fcn.65bf2700
test al, al
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jne 0x65bf25ba
push 0
call edi
push eax
call esi
call fcn.65bf2870
test al, al
jne 0x65bf25ca
push 0
call edi
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [esp + 0x10], 0
jne 0x65bf2611
cmp dword [esp + 0x28], 0x182
jne 0x65bf2611
call fcn.65bf2970
test al, al
jne 0x65bf260a
mov edx, dword [0x65c0033c]
push edx
push 0x15
push 0x11
push 0
mov ecx, 4
call fcn.65bf46e0
add esp, 0x10
push 0
call edi
push eax
call esi
cmp byte [0x65c00344], 0
jne 0x65bf2643
call 0x65bf47e0
test al, al
jne 0x65bf262a
push 0
call edi
push eax
call esi
cmp byte [0x65c00344], 0
jne 0x65bf2643
call fcn.65bf2d50
test al, al
jne 0x65bf2643
push 0
call edi
push eax
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x65c015d4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
pop edi
pop esi
jmp 0x65bf26e3
push str.acfirst.dll_Terminating__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.65bf3f80
mov eax, dword [0x65c00334]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
cmp byte [0x65c00344], 0
mov dword [0x65c00334], 0
je 0x65bf26bc
mov ecx, dword [0x65c00340]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov edx, dword [0x65c0033c]
push edx
mov dword [0x65c00340], 0
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 8
mov dword [0x65c0033c], 0
mov eax, dword [0x65c015f0]
test eax, eax
je 0x65bf26cd
mov ecx, dword [0x65c015ec]
mov dword [eax], ecx
push 0x65c015d4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x65c015d4
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [esp + 0x27c]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.65bfa00c
add esp, 0x27c
ret 0xc