Function at 0x405301
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x64c194]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
mov ebx, ecx
mov eax, dword [ebx + 8]
xor esi, esi
cmp dword [0x6605e8], esi
push edi
mov dword [esp + 0x10], eax
jne 0x40533b
lea ecx, [esp + 0x10]
mov dword [0x6605e8], ecx
cmp dword [ebx + 0x30], esi
jne 0x405362
cmp eax, esi
je 0x405362
mov ecx, dword [eax + 0x28]
mov dword [ebx + 0x2c], ecx
mov dword [eax + 0x28], ebx
mov eax, dword [ebx + 8]
or dword [ebx + 0x30], 0xffffffff
cmp dword [eax + 0x30], 1
jne 0x405547
mov eax, dword [esp + 0x10]
cmp dword [ebx + 0x30], 1
je 0x405547
mov ecx, dword [0x661680]
mov dword [ebx + 0x34], ecx
mov ecx, dword [ebx + 0x20]
cmp ecx, esi
mov dword [0x661680], ebx
je 0x40539f
cmp dword [ecx], esi
je 0x40539f
add ecx, 0x18
jne 0x405382
jmp 0x40539f
mov edx, dword [eax + 0x20]
cmp edx, esi
je 0x405398
cmp dword [edx], esi
jne 0x4053a3
mov eax, dword [eax + 8]
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x40538d
cmp ecx, esi
je 0x4053aa
mov dword [ecx + 0x10], eax
push ebx
lea edi, [esp + 0x2c]
call fcn.004077d6
mov ecx, eax
call fcn.00403d63
mov dword [ebx + 0x38], eax
mov ecx, dword [eax + 0xc]
mov dword [ebx + 0x3c], ecx
cmp dword [0x652150], esi
je 0x4053d3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x30]
cmp ebx, 0x652118
jne 0x405402
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 0x34]
jmp 0x4053fa
cmp dword [eax + 0x38], esi
je 0x4053f7
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x30]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x34]
cmp eax, esi
mov dword [esp + 0x10], eax
jne 0x4053e4
cmp ebx, 0x6530f8
mov dword [ebx + 0x30], 1
jne 0x405416
call fcn.00405d3e
mov edi, dword [ebx + 0x28]
jmp 0x405425
mov ecx, edi
call fcn.00405301
mov edi, dword [edi + 0x2c]
cmp edi, esi
jne 0x40541b
mov eax, dword [ebx + 0x20]
cmp eax, esi
mov dword [esp + 0x14], esi
je 0x405547
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
cmp dword [eax], esi
jne 0x40555c
mov eax, dword [eax + 0x10]
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x40545e
mov eax, dword [eax + 0x20]
cmp eax, esi
jne 0x405444
test dword [esp + 0x14], 0x80000000
je 0x40548d
push str.Stupidly_large_type
call fcn.00404b8d
pop ecx
push dword [ebx]
call fcn.00404b8d
mov dword [esp], str.__refactor_it._r_n
call fcn.00404b8d
pop ecx
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov ecx, dword [ebx + 0xc]
xor eax, eax
sub ecx, 4
shr ecx, 2
inc eax
shl eax, cl
dec eax
cmp dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
je 0x40552c
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Missing_property_in_type
call edi
push dword [ebx]
call edi
push 0x5d21c4
call edi
lea esi, [esp + 0x58]
call fcn.00409955
push dword [esp + 0x24]
lea eax, [esp + 0x64]
push str._want
push dword [esp + 0x1c]
push str.Have
call fcn.00404753
mov ecx, eax
call fcn.0040490a
call fcn.00404753
mov ecx, eax
call fcn.0040490a
push eax
call fcn.004052ee
pop ecx
push dword [esp + 0x80]
mov byte [esp + 0xac], 0
call edi
call dword [sym.imp.KERNEL32.dll_DebugBreak]
lea ecx, [esp + 0x64]
call fcn.004096f1
lea ecx, [esp + 0xac]
call fcn.00406357
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x40], eax
not eax
and ecx, eax
mov eax, ecx
or eax, dword [esp + 0x20]
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], eax
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052a758
mov esp, ebp
pop ebp
ret
mov esi, dword [eax + 0x10]
test esi, esi
je 0x40545e
mov ecx, dword [esi + 0xc]
xor edi, edi
inc edi
test byte [eax + 0xe], 1
jne 0x405581
cmp ecx, 4
jbe 0x405581
lea edi, [edi + edi + 1]
sub ecx, 4
jmp 0x405573
movzx ecx, word [eax + 0xc]
test cx, cx
jbe 0x40558d
shl edi, cl
dec edi
mov ecx, dword [eax + 8]
sub ecx, 4
shr ecx, 2
shl edi, cl
movzx ecx, word [eax + 0xe]
or dword [esp + 0x14], edi
mov dl, cl
and dl, 3
cmp dl, 3
jne 0x4055ae
or dword [esp + 0x1c], edi
shr cl, 3
test cl, 1
je 0x4055ba
or dword [esp + 0x18], edi
mov cl, byte [esi + 0x14]
shr cl, 5
test cl, 1
je 0x4055c9
or dword [esp + 0x20], edi
add eax, 0x18
xor esi, esi
jmp 0x405444