Function at 0x1008123a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov eax, ecx
mov dword [esp + 0xc], 1
mov ebx, edx
mov dword [esp + 0x18], eax
push esi
xor ecx, ecx
mov dword [esp + 0xc], eax
xor edx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 7
push edi
mov edi, edx
test ebx, ebx
je 0x10081549
test eax, eax
je 0x10081549
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10081287
mov dword [esi], edx
mov eax, dword [ebx]
add eax, eax
push eax
push edx
push dword [ebx + 4]
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
lea edx, [esp + 0x20]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
and dword [ebx], edi
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push eax
push ebx
call fcn.10080f6d
mov esi, eax
test esi, esi
js 0x10081434
cmp dword [esp + 0x14], edi
je 0x100812ca
xor esi, esi
jmp 0x10081486
push 0x10008f88
mov ecx, ebx
call fcn.100115f7
mov esi, eax
xor edx, edx
test esi, esi
js 0x10081541
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
cmp edi, 3
ja 0x1008153c
test edi, edi
jne 0x10081315
push 0x10008f80
mov ecx, ebx
call fcn.100115f7
mov esi, eax
xor edx, edx
test esi, esi
js 0x10081541
mov eax, dword [esp + 0x10]
cmp word [eax], dx
je 0x10081334
push 1
push eax
mov ecx, ebx
call fcn.10071022
mov esi, eax
xor edx, edx
test esi, esi
js 0x10081541
mov eax, dword [esp + 0x10]
movzx ecx, word [eax]
push 0x2f
pop eax
cmp ax, cx
jne 0x1008134b
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
jmp 0x1008134f
mov eax, dword [esp + 0x14]
push 0x5b
pop edx
cmp dx, cx
jne 0x1008135f
mov edx, dword [ebx]
sub edx, eax
mov dword [esp + 0x18], edx
lea edx, [esp + 0x1c]
call fcn.10080c89
mov esi, eax
xor edx, edx
test esi, esi
js 0x10081541
mov eax, dword [esp + 0x1c]
imul esi, edi, 0x1c
lea edi, [esp + 0x24]
push 7
pop ecx
add esi, 0x1008ad80
rep movsd dword es:[edi], dword [esi]
sub eax, edx
je 0x100813ce
sub eax, 1
je 0x100813c8
dec eax
sub eax, 1
je 0x100813c2
sub eax, 1
je 0x100813bc
sub eax, 1
je 0x100813b6
sub eax, 1
je 0x100813b0
push 5
sub eax, 1
pop edi
jmp 0x100813d2
mov edi, dword [esp + 0x3c]
jmp 0x100813d2
mov edi, dword [esp + 0x38]
jmp 0x100813d2
mov edi, dword [esp + 0x34]
jmp 0x100813d2
mov edi, dword [esp + 0x30]
jmp 0x100813d2
mov edi, dword [esp + 0x28]
jmp 0x100813d2
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
add eax, 2
mov dword [esp + 0x10], eax
cmp edi, 4
jl 0x100812ec
cmp edi, 5
jne 0x10081491
push 0x10008d90
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x10008dd4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
cmp dword [ebx], eax
mov eax, 0x10003f08
je 0x1008141d
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x10006cb0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, 0x80070057
mov edi, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10081458
mov eax, dword [ecx]
add eax, eax
push eax
push edx
push dword [ecx + 4]
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
xor edx, edx
mov dword [eax], edx
test edi, edi
je 0x10081471
mov eax, dword [edi]
add eax, eax
push eax
push edx
push dword [edi + 4]
call sub.msvcrt.dll_memset
add esp, 0xc
xor edx, edx
mov dword [edi], edx
mov eax, dword [ebx]
add eax, eax
push eax
push edx
push dword [ebx + 4]
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
mov dword [ebx], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp + 8]
test esi, esi
je 0x100814cf
mov eax, dword [esi]
add eax, eax
push eax
push edx
push dword [esi + 4]
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esi], eax
mov ecx, 0x10003f08
cmp dword [ebx], eax
je 0x100814b9
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x14]
dec eax
push eax
push ecx
mov ecx, esi
call fcn.10071022
mov esi, eax
xor edx, edx
test esi, esi
js 0x10081541
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10081533
mov eax, dword [edi]
add eax, eax
push eax
push edx
push dword [edi + 4]
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
mov dword [edi], eax
mov ecx, 0x10003f08
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x10081510
cmp dword [ebx], eax
je 0x100814ff
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x14]
lea eax, [ecx + eax*2]
mov ecx, edi
push eax
call fcn.100115f7
jmp 0x10081529
cmp dword [ebx], 0
je 0x10081518
mov ecx, dword [ebx + 4]
dec eax
push eax
mov eax, dword [esp + 0x18]
lea eax, [ecx + eax*2]
mov ecx, edi
push eax
call fcn.10071022
mov esi, eax
test esi, esi
js 0x10081437
xor eax, eax
mov esi, eax
jmp 0x10081486
mov esi, 0x8000ffff
mov edi, dword [ebp + 0xc]
jmp 0x10081439
mov esi, 0x80070057
jmp 0x10081541