Function at 0x2d878518
Capabilities:
Print debug messages

Disassembly:
push 0x24
mov eax, 0x2d8ca9a4
call fcn.2d801ca3
mov ebx, ecx
mov dword [ebp - 0x30], ebx
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
xor eax, eax
lea edi, [ebp - 0x18]
stosb byte es:[edi], al
push dword [ebp - 0x18]
mov eax, dword [esi + 4]
push eax
push ecx
mov dword [ebp - 0x1c], 1
call fcn.2d8ac5c8
mov ecx, dword [esi]
xor eax, eax
add esp, 0xc
lea edi, [ebp + 0x10]
stosb byte es:[edi], al
push dword [ebp + 0x10]
mov eax, dword [esi + 4]
push eax
push ecx
lea eax, [ebp + 0x10]
push eax
call fcn.2d8ac5c8
add esp, 0x10
push dword [esi + 4]
lea eax, [ebp + 0x10]
push dword [ebp + 0x10]
mov ecx, esi
push eax
call fcn.2d8ac5c8
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x20], edx
xor edi, edi
cmp eax, edx
je 0x2d8785a9
mov ecx, dword [eax]
cmp byte [ecx + 0x200], 0
je 0x2d87859a
inc edi
cmp dword [ecx + 0x220], 0
je 0x2d8785a4
inc edi
add eax, 4
jmp 0x2d87858a
xor ecx, ecx
push 0x28
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.2d8ac5c8
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x2d8785cc
call fcn.2d8ac5c8
imul edi, edi, 0x28
push edi
push 0
push dword [ebp - 0x14]
call sub.MSVCR100.dll_memset
mov edx, dword [ebp + 0x14]
xor eax, eax
inc eax
mov word [ebx + 6], ax
xor eax, eax
add esp, 0xc
and dword [ebp + 0x10], eax
mov word [edx], ax
mov ecx, dword [esi]
mov dword [ebp - 0x18], ecx
cmp ecx, dword [ebp - 0x20]
je 0x2d8786ea
mov edi, dword [ecx]
lea esi, [edi + 0x200]
cmp byte [esi], 0
mov dword [ebp - 0x2c], edi
je 0x2d8786c1
cmp byte [edi + 0x226], 0
je 0x2d87861d
inc word [edx]
push 0
push 0x20
push esi
call fcn.2d8ac5c8
add esp, 0xc
push eax
push esi
call fcn.2d8ac5c8
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x2d878648
movzx eax, word [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
imul eax, eax, 0x28
mov byte [eax + ecx], bl
jmp 0x2d8786ad
push 0
mov esi, 0x7fffffff
push esi
push ebx
call fcn.2d8ac5c8
mov ecx, eax
add esp, 0xc
mov eax, ebx
call fcn.2d877cce
push 0
push esi
push ebx
call fcn.2d8ac5c8
add esp, 0xc
push 0x1e
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, ecx
mov dword [ebp - 0x28], ecx
lea eax, [ebp - 0x24]
jb 0x2d878681
lea eax, [ebp - 0x28]
movzx edi, word [ebp + 0x10]
mov esi, dword [eax]
imul edi, edi, 0x28
mov eax, dword [ebp - 0x14]
push esi
add eax, edi
push ebx
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 0x14]
add esp, 0xc
add edi, esi
push ebx
mov byte [edi + eax], 0
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov edi, dword [ebp - 0x2c]
push 0x2d8d8f28
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [edi + 0x220]
test eax, eax
jne 0x2d8786d0
inc dword [ebp + 0x10]
jmp 0x2d8786e2
movzx esi, word [ebp + 0x10]
mov edi, dword [ebp - 0x14]
imul esi, esi, 0x28
add dword [ebp + 0x10], 2
mov dword [esi + edi + 0x48], eax
add ecx, 4
jmp 0x2d8785f1
push 0x2d8d8f28
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 2
push dword [ebp + 0xc]
call fcn.2d8302d5
mov edx, dword [ebx]
pop ecx
pop ecx
movzx ecx, word [ebp + 8]
mov edx, dword [edx + ecx*4]
mov dword [edx], eax
mov eax, dword [ebx]
mov eax, dword [eax + ecx*4]
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov eax, dword [ebx]
mov eax, dword [eax + ecx*4]
mov cx, word [ebp + 0x10]
mov word [eax + 8], cx
mov ax, word [ebp - 0x1c]
call fcn.2d8014c0
ret 0x10