Function at 0x1002f010
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10090a28
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x1009cbc0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, edx
mov eax, ecx
mov ecx, 0x10
mov esi, str.ABCDEFGHJKLMNPQRTUVWXY0123456789
lea edi, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x178], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
push 0xffffffffffffffff
push eax
push 0x104
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x178]
push eax
call fcn.10052d14
add esp, 0x14
test eax, eax
je 0x1002f142
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1002f0cc
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1002f128
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002f107
mov byte [esi + 0xffff], 0
push esi
push str.CalculateKeyFromID
push 1
mov edx, 0x104
mov ecx, str...StandAloneSvcMisc.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002f11f
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, edi
jmp 0x1002f38a
push 0x104
lea eax, [ebp - 0x174]
push eax
call fcn.10053a0a
lea ecx, [ebp - 0x2c]
push ecx
mov edx, eax
lea ecx, [ebp - 0x174]
call fcn.100076a0
add esp, 0xc
mov edi, eax
test edi, edi
je 0x1002f1c6
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1002f0b2
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002f107
mov byte [esi + 0xffff], 0
push esi
push str.CalculateKeyFromID
push 1
mov edx, 0x109
mov ecx, str...StandAloneSvcMisc.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002f11f
lea ecx, [ebp - 0x70]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002f1d0
sub ecx, edx
sar ecx, 1
movzx eax, byte [ebp - 0x1d]
xor edx, edx
div ecx
movzx eax, word [ebp + edx*2 - 0x70]
push eax
movzx eax, byte [ebp - 0x1e]
xor edx, edx
div ecx
movzx eax, word [ebp + edx*2 - 0x70]
push eax
movzx eax, byte [ebp - 0x1f]
xor edx, edx
div ecx
movzx eax, word [ebp + edx*2 - 0x70]
push eax
movzx eax, byte [ebp - 0x20]
xor edx, edx
div ecx
movzx eax, word [ebp + edx*2 - 0x70]
push eax
movzx eax, byte [ebp - 0x21]
xor edx, edx
div ecx
movzx eax, word [ebp + edx*2 - 0x70]
push eax
movzx eax, byte [ebp - 0x22]
xor edx, edx
div ecx
movzx eax, word [ebp + edx*2 - 0x70]
push eax
movzx eax, byte [ebp - 0x23]
xor edx, edx
div ecx
movzx eax, word [ebp + edx*2 - 0x70]
push eax
movzx eax, byte [ebp - 0x24]
xor edx, edx
div ecx
movzx eax, word [ebp + edx*2 - 0x70]
push eax
movzx eax, byte [ebp - 0x25]
xor edx, edx
div ecx
movzx eax, word [ebp + edx*2 - 0x70]
push eax
movzx eax, byte [ebp - 0x26]
xor edx, edx
div ecx
movzx eax, word [ebp + edx*2 - 0x70]
push eax
movzx eax, byte [ebp - 0x27]
xor edx, edx
div ecx
movzx eax, word [ebp + edx*2 - 0x70]
push eax
movzx eax, byte [ebp - 0x28]
xor edx, edx
div ecx
movzx eax, word [ebp + edx*2 - 0x70]
push eax
movzx eax, byte [ebp - 0x29]
xor edx, edx
div ecx
movzx eax, word [ebp + edx*2 - 0x70]
push eax
movzx eax, byte [ebp - 0x2a]
xor edx, edx
div ecx
movzx eax, word [ebp + edx*2 - 0x70]
push eax
movzx eax, byte [ebp - 0x2b]
xor edx, edx
div ecx
movzx eax, word [ebp + edx*2 - 0x70]
push eax
movzx eax, byte [ebp - 0x2c]
xor edx, edx
div ecx
movzx eax, word [ebp + edx*2 - 0x70]
push eax
push str._wc_wc_wc_wc__wc_wc_wc_wc__wc_wc_wc_wc__wc_wc_wc_wc
push ebx
call fcn.10001ba0
add esp, 0x48
mov dword [ebp - 4], 0
call fcn.1002f2e7
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x1002f38a
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret