Function at 0x4357c0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x50
mov edx, dword [0x787ee8]
mov ecx, dword [0x787eec]
push edi
mov edi, dword [0x787ef0]
xor eax, eax
or edx, 2
cmp edi, eax
mov dword [esp + 4], eax
mov dword [0x787ee8], edx
mov dword [esp + 8], ecx
je 0x4359dd
push ebx
push ebp
push esi
lea esi, [edi + 4]
push 0x20
push esi
call fcn.004300d0
lea edx, [esp + 0x28]
add esp, 8
mov dword [esp + 0x1c], eax
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x43580e
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [str..wim]
repne scasb al, byte es:[edi]
mov al, byte [0x4ae5fc]
dec edi
lea ecx, [esp + 0x20]
push 1
mov dword [edi], edx
push ecx
push 1
mov byte [edi + 4], al
call fcn.00456e70
mov edi, eax
push str.Image_File
push str.Init_Resources
mov edx, dword [edi + 4]
push edx
call fcn.00458430
mov esi, eax
mov eax, dword [edi + 4]
push eax
push esi
push edi
call fcn.00456f20
push edi
call fcn.00456f60
mov ecx, dword [esi + 8]
push str.Dir_Array
shl ecx, 2
push ecx
lea ebp, [esi + 0xc]
call fcn.004582d0
mov ecx, dword [esi + 8]
mov ebx, eax
shl ecx, 2
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 0x30
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 8]
xor eax, eax
test ecx, ecx
jbe 0x4358b2
mov dword [ebx + eax*4], ebp
mov ecx, dword [esi + 8]
add ebp, 8
inc eax
cmp eax, ecx
jb 0x4358a4
mov eax, dword [ebp]
test eax, eax
jbe 0x4358d9
shl eax, 2
push str.Anim_Groups_array
push eax
call fcn.004582d0
lea ecx, [ebp + 4]
mov dword [esp + 0x18], eax
push ecx
push eax
push ebp
call fcn.00436c80
add esp, 0x14
mov edi, dword [esp + 0x14]
test edi, edi
je 0x435951
push edi
call fcn.00436e50
add esp, 4
test eax, eax
je 0x435917
push edi
call fcn.00436f30
mov eax, dword [0x787eec]
add esp, 4
cmp edi, eax
jne 0x43590b
mov edx, dword [edi + 8]
mov dword [0x787eec], edx
jmp 0x43594a
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 8]
mov dword [ecx + 8], eax
jmp 0x43594a
mov ax, word [edi + 0x12]
mov dword [esp + 0x18], edi
cmp ax, word [esp + 0x1c]
jne 0x43594a
mov edx, dword [esp + 0x10]
push eax
push esi
push edi
push edx
push ebp
push ebx
push esi
call fcn.004359f0
mov eax, dword [0x787eec]
add esp, 0x1c
cmp edi, eax
jne 0x43594a
mov eax, dword [edi + 8]
mov dword [0x787eec], eax
mov edi, dword [edi + 8]
test edi, edi
jne 0x4358e1
mov eax, dword [ebp]
test eax, eax
jbe 0x43599a
xor edi, edi
test eax, eax
jbe 0x43598d
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x18]
test eax, eax
je 0x435975
push eax
call fcn.00458f80
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + edi*4]
push ecx
call fcn.00458f80
mov eax, dword [ebp]
add esp, 4
inc edi
cmp edi, eax
jb 0x43595e
mov edx, dword [esp + 0x10]
push edx
call fcn.00458f80
add esp, 4
mov eax, dword [0x787eec]
mov dword [esp + 0x14], eax
mov eax, dword [0x787ef0]
push eax
mov edi, dword [eax]
call fcn.00458f80
push ebx
mov dword [0x787ef0], edi
call fcn.00458f80
push esi
call fcn.00458f80
add esp, 0xc
push 0x4ae5c4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test edi, edi
jne 0x4357f4
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword [0x787ef0], eax
mov dword [0x787eec], eax
pop edi
add esp, 0x50
ret