Function at 0x4464a0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446938
push eax
mov dword fs:[0], esp
sub esp, 0x518
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x446505
push 0x88
call fcn.0045b6b0
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [ebp - 4], 0
mov edi, eax
mov eax, 0
test edi, edi
je 0x4464fb
push 0
mov ecx, edi
push 0
call fcn.00432090
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x44651e
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [esi + 0x40]
mov dword [eax + 0xc], 0
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x446540
mov eax, dword [ebp - 0x14]
mov edi, 0
mov ecx, dword [eax + 0x228]
add eax, 0x228
cmp ecx, 1
adc edi, 0xffffffff
and edi, eax
mov eax, dword [esi + 0x68]
test eax, eax
je 0x446559
mov ebx, dword [esi + 0x50]
jmp 0x44655e
mov ebx, 6
mov eax, dword [esi + 0x64]
mov edx, 5
test eax, eax
je 0x44656d
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x54]
test eax, eax
je 0x446579
mov ecx, dword [esi + 0x44]
jmp 0x446582
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x224]
push 0xff00ff
mov eax, dword [esi + 0x5c]
push pe_nt_image_headers32
cmp eax, 1
push edi
mov eax, 0
adc eax, 0xffffffff
push ebx
push edx
and eax, 2
push eax
mov edx, dword [0x4e2fdc]
mov ebx, dword [edx + 4]
mov eax, dword [ebx + 0x20]
push eax
push ecx
push esi
mov ecx, dword [ebp - 0x14]
xor edi, edi
mov edx, dword [ecx + 0x220]
push edx
call fcn.00440ac0
add esp, 0x28
mov ebx, eax
test ebx, ebx
jne 0x4468d7
push esi
lea eax, [ebp - 0x124]
push str.TextureMap__s_Not_found_in_resources_checking_current_directory._Please_Add_to_Resources_n
push eax
call fcn.004bd200
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov ecx, dword [eax + 0x224]
cmp ecx, 8
jne 0x446750
push esi
lea eax, [ebp - 0x124]
mov dword [ebp - 0x24], 1
push str.Creating_color_palette__mapper_for__s__this_may_take_a_moment_n
push eax
call fcn.004bd200
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x11ac38
mov ebx, 0
call fcn.0045b6b0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x44665d
mov ecx, eax
call fcn.00405930
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
push 0
push esi
call fcn.00477b30
add esp, 8
mov edi, eax
test edi, edi
je 0x4466cf
mov al, byte [edi + 0x12]
cmp al, 0x10
jne 0x446695
movsx eax, word [edi + 0xe]
movsx ecx, word [edi + 0x10]
imul eax, ecx
push eax
mov edx, dword [edi + 0x14]
push edx
mov ecx, ebx
call fcn.00405b40
jmp 0x4466cf
mov ecx, dword [edi + 0x14]
push 0
movsx eax, word [edi + 0xe]
movsx edx, word [edi + 0x10]
push 0
push 0
push 0
push ecx
push eax
push eax
push edx
push eax
push 0x18
push ecx
call fcn.0044b0e0
add esp, 0x2c
mov edx, dword [edi + 0x14]
movsx eax, word [edi + 0xe]
movsx ecx, word [edi + 0x10]
imul eax, ecx
push eax
mov ecx, ebx
push edx
call fcn.00405a60
push 0
mov ecx, ebx
push 0
push 0x100
call fcn.00405c20
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x4466ee
push 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
test edi, edi
je 0x4466fb
push edi
call fcn.00478220
add esp, 4
mov ecx, dword [ebp - 0x10]
call fcn.00404590
lea ecx, [ebp - 0x524]
mov dl, byte [eax]
add ecx, 4
add eax, 3
mov byte [ecx - 4], dl
mov bl, byte [eax - 2]
mov byte [ecx - 3], bl
mov dl, byte [eax - 1]
mov byte [ecx - 2], dl
lea edx, [ebp - 0x124]
mov byte [ecx - 1], 0
cmp ecx, edx
jb 0x446709
mov eax, dword [ebp - 0x14]
push 0
mov ecx, dword [eax + 0x168]
lea eax, [ebp - 0x20]
push eax
mov edx, dword [ecx]
mov ecx, dword [edx]
lea edx, [ebp - 0x524]
push edx
push 4
push ecx
mov ebx, dword [ecx]
call dword [ebx + 0x14]
push 0x9c
call fcn.0045b6b0
mov dword [ebp - 0x18], eax
add esp, 4
mov dword [ebp - 4], 2
mov edi, eax
test edi, edi
je 0x44678f
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x220]
push ecx
mov ecx, edi
call fcn.00440a00
mov ebx, eax
jmp 0x446791
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
push 0x4df470
push esi
call fcn.004bd1c0
add esp, 8
mov dword [ebp - 0x128], eax
test eax, eax
je 0x446898
push 0
push eax
call fcn.00476e40
add esp, 8
mov edi, eax
mov al, byte [eax + 0x12]
cmp al, 0x10
jne 0x446818
movsx eax, word [edi + 0xe]
movsx ecx, word [edi + 0x10]
push 0xff00ff
mov dword [ebp - 0x18], eax
push pe_nt_image_headers32
mov edx, dword [ebp - 0x20]
push 0
mov eax, dword [ebp - 0x10]
push 1
mov dword [ebp - 0x1c], ecx
push 2
mov ecx, dword [ebp - 0x14]
push edx
push 0
push eax
mov edx, dword [ecx + 0x224]
push edx
push 2
call fcn.00461140
add esp, 4
mov ecx, dword [ebp - 0x18]
imul eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
push eax
mov edx, dword [ebp - 0x1c]
push 2
push ecx
jmp 0x44686a
cmp al, 0x18
jne 0x44687a
movsx eax, word [edi + 0xe]
movsx ecx, word [edi + 0x10]
push 0xff00ff
mov dword [ebp - 0x18], eax
push pe_nt_image_headers32
mov edx, dword [ebp - 0x20]
push 0
mov eax, dword [ebp - 0x10]
push 1
mov dword [ebp - 0x1c], ecx
push 2
mov ecx, dword [ebp - 0x14]
push edx
push 0
push eax
mov edx, dword [ecx + 0x224]
push edx
push 1
call fcn.00461140
add esp, 4
mov ecx, dword [ebp - 0x18]
imul eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
push eax
mov edx, dword [ebp - 0x1c]
push 1
push ecx
push edx
mov eax, dword [ebp - 0x128]
push ecx
push eax
mov ecx, ebx
call fcn.00440cf0
mov eax, dword [ebp - 0x128]
push eax
call fcn.004bd0c0
add esp, 4
test edi, edi
je 0x4468ba
push edi
call fcn.00478220
add esp, 4
jmp 0x4468ba
push esi
lea eax, [ebp - 0x124]
push str.Unable_to_open_file__s_n
push eax
call fcn.004bd200
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4468d7
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4468d7
push 1
mov edi, dword [eax]
mov ecx, eax
call dword [edi]
push ebx
mov ecx, dword [esi + 0x40]
call fcn.004321f0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
test ebx, ebx
je 0x446926
mov eax, dword [esi + 0x60]
test eax, eax
je 0x446901
mov eax, dword [esi + 0x48]
mov edx, dword [esi + 0x40]
push eax
mov ecx, dword [edx + 0xc]
call fcn.00442500
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x168]
mov edx, dword [ecx + 4]
mov ebx, dword [edx + 0x110]
test ebx, ebx
je 0x446926
push 0
mov eax, dword [esi + 0x40]
push 1
mov ecx, dword [eax + 0xc]
call fcn.00441be0
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8