Function at 0x447300
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x3c
push ebx
push ebp
mov ebp, dword [esp + 0x50]
push esi
mov esi, dword [esp + 0x50]
push edi
mov eax, dword [ebp + 0x58]
push esi
mov dword [0x7e1454], eax
mov ecx, dword [ebp + 0x5c]
mov dword [0x7e0e38], ecx
mov edx, dword [ebp + 0x60]
mov dword [0x7e1450], edx
call fcn.00446c90
add esp, 4
test eax, eax
jne 0x4478aa
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x40]
push eax
push esi
push ecx
call fcn.004478c0
add esp, 0xc
test eax, eax
jne 0x447372
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.MISSING_TEXTURE:
call edi
push esi
call edi
push 0x4ae5c4
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x5c]
push edx
mov cx, word [eax + 8]
mov dx, word [eax + 2]
push ecx
push edx
call fcn.00445e90
mov ebx, eax
add esp, 0xc
test ebx, ebx
mov dword [esp + 0x2c], ebx
je 0x44789b
mov eax, dword [esp + 0x44]
mov cx, word [ebx + 4]
cmp cx, word [eax + 2]
jne 0x4473c0
mov dx, word [ebx + 6]
cmp dx, word [eax + 8]
jne 0x4473c0
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.00445be0
jmp 0x4473cb
lea ecx, [esp + 0x40]
push ebx
push ecx
call fcn.00445c50
add esp, 8
lea edx, [esp + 0x40]
push 0x7e0f40
push edx
call fcn.00445d10
mov edx, dword [ebp + 0x58]
add esp, 8
mov eax, 0xf
mov ecx, 0x8000
test ecx, edx
jne 0x4473f8
dec eax
shr ecx, 1
test eax, eax
jg 0x4473ed
mov esi, dword [ebp + 0x5c]
lea edx, [eax - 7]
mov eax, 0xf
mov ecx, 0x8000
test ecx, esi
jne 0x447413
dec eax
shr ecx, 1
test eax, eax
jg 0x447408
mov edi, dword [ebp + 0x60]
lea ecx, [eax - 7]
mov eax, 0xf
mov esi, 0x8000
test esi, edi
jne 0x44742e
dec eax
shr esi, 1
test eax, eax
jg 0x447423
xor esi, esi
add eax, 0xfffffff9
cmp dx, si
jge 0x447565
movsx eax, ax
neg edx
movsx edx, dx
movsx ecx, cx
mov dword [esp + 0x1c], eax
mov eax, 0x7e0f42
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x3c], 0x100
xor edx, edx
xor ecx, ecx
mov dl, byte [eax - 2]
mov cl, byte [eax - 1]
xor ebx, ebx
mov esi, edx
mov bl, byte [eax]
mov eax, 0x7f0000
shl esi, 0x10
sub eax, esi
mov dword [esp + 0x34], 0x10
sar eax, 4
mov dword [esp + 0x50], eax
mov eax, 0x7f0000
shl ecx, 0x10
sub eax, ecx
sar eax, 4
mov dword [esp + 0x10], eax
mov eax, 0x7f0000
shl ebx, 0x10
sub eax, ebx
mov dword [esp + 0x58], ebx
sar eax, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], eax
jmp 0x4474c5
mov ecx, dword [esp + 0x14]
mov edi, ebx
mov ebx, dword [esp + 0x50]
mov eax, esi
add esi, ebx
mov ebx, dword [esp + 0x10]
mov edx, ecx
add ecx, ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
add ebx, ecx
mov ecx, dword [esp + 0x24]
sar eax, 0x10
sar eax, cl
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x58], ebx
sar edx, 0x10
shl edx, cl
mov ecx, dword [esp + 0x1c]
and ax, word [ebp + 0x58]
sar edi, 0x10
shl edi, cl
and dx, word [ebp + 0x5c]
mov ecx, dword [esp + 0x30]
add ecx, 0x200
add eax, edx
mov edx, dword [0x7e1464]
and di, word [ebp + 0x60]
mov dword [esp + 0x30], ecx
add eax, edi
mov word [ecx + edx - 0x200], ax
mov eax, dword [esp + 0x34]
dec eax
mov dword [esp + 0x34], eax
jne 0x4474c1
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
add esi, 2
add eax, 4
dec ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
jne 0x447468
jmp 0x4477bb
cmp cx, si
jge 0x447697
neg ecx
movsx ecx, cx
movsx eax, ax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
movsx ecx, dx
mov eax, 0x7e0f42
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], 0x100
xor edx, edx
xor ecx, ecx
mov dl, byte [eax - 2]
mov cl, byte [eax - 1]
xor ebx, ebx
mov esi, edx
mov bl, byte [eax]
mov eax, 0x7f0000
shl esi, 0x10
sub eax, esi
mov dword [esp + 0x38], 0x10
sar eax, 4
mov dword [esp + 0x50], eax
mov eax, 0x7f0000
shl ecx, 0x10
sub eax, ecx
sar eax, 4
mov dword [esp + 0x10], eax
mov eax, 0x7f0000
shl ebx, 0x10
sub eax, ebx
mov dword [esp + 0x58], ebx
sar eax, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
jmp 0x4475f7
mov ecx, dword [esp + 0x14]
mov edi, ebx
mov ebx, dword [esp + 0x50]
mov edx, esi
add esi, ebx
mov ebx, dword [esp + 0x10]
mov eax, ecx
add ecx, ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
add ebx, ecx
mov ecx, dword [esp + 0x20]
sar eax, 0x10
sar eax, cl
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x58], ebx
sar edi, 0x10
shl edi, cl
mov ecx, dword [esp + 0x24]
and ax, word [ebp + 0x5c]
sar edx, 0x10
shl edx, cl
and di, word [ebp + 0x60]
mov ecx, dword [esp + 0x3c]
add ecx, 0x200
add eax, edi
mov dword [esp + 0x3c], ecx
and dx, word [ebp + 0x58]
add eax, edx
mov edx, dword [0x7e1464]
mov word [ecx + edx - 0x200], ax
mov eax, dword [esp + 0x38]
dec eax
mov dword [esp + 0x38], eax
jne 0x4475f3
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add esi, 2
add eax, 4
dec ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
jne 0x44759a
jmp 0x4477bb
neg eax
movsx eax, ax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], esi
movsx eax, cx
movsx edx, dx
mov dword [esp + 0x20], eax
mov eax, 0x7e0f42
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 0x100
xor ecx, ecx
xor ebx, ebx
mov cl, byte [eax - 2]
mov bl, byte [eax]
mov esi, ecx
xor ecx, ecx
mov cl, byte [eax - 1]
mov eax, 0x7f0000
shl esi, 0x10
sub eax, esi
mov edx, dword [esp + 0x28]
sar eax, 4
mov dword [esp + 0x50], eax
mov eax, 0x7f0000
shl ecx, 0x10
sub eax, ecx
mov dword [esp + 0x3c], edx
sar eax, 4
mov dword [esp + 0x10], eax
mov eax, 0x7f0000
shl ebx, 0x10
sub eax, ebx
mov dword [esp + 0x58], ebx
sar eax, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], 0x10
jmp 0x447720
mov ecx, dword [esp + 0x14]
mov eax, ebx
mov ebx, dword [esp + 0x50]
mov edx, esi
add esi, ebx
mov ebx, dword [esp + 0x10]
mov edi, ecx
add ecx, ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
add ebx, ecx
mov ecx, dword [esp + 0x1c]
sar eax, 0x10
sar eax, cl
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x58], ebx
sar edi, 0x10
shl edi, cl
mov ecx, dword [esp + 0x24]
and ax, word [ebp + 0x60]
sar edx, 0x10
shl edx, cl
and di, word [ebp + 0x5c]
mov ecx, dword [esp + 0x3c]
add ecx, 0x200
add eax, edi
mov dword [esp + 0x3c], ecx
and dx, word [ebp + 0x58]
add eax, edx
mov edx, dword [0x7e1464]
mov word [ecx + edx - 0x200], ax
mov eax, dword [esp + 0x38]
dec eax
mov dword [esp + 0x38], eax
jne 0x44771c
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add esi, 2
add eax, 4
dec ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
jne 0x4476c3
mov ebx, dword [esp + 0x2c]
push ebx
call fcn.00446c50
push ebx
call fcn.00445360
add esp, 8
mov ecx, 1
test eax, eax
je 0x4477da
or dword [ebx + 8], ecx
test byte [esp + 0x5c], cl
je 0x4477e9
push ebx
call fcn.004464b0
add esp, 4
test byte [esp + 0x5c], 4
je 0x4477f9
push ebx
call fcn.00446770
add esp, 4
test byte [esp + 0x5c], 8
je 0x447809
push ebx
call fcn.00446920
add esp, 4
test byte [esp + 0x5c], 0x10
je 0x447819
push ebx
call fcn.00446b20
add esp, 4
mov eax, dword [0x7e1460]
push eax
call fcn.0046650b
mov ecx, dword [0x7e1464]
push ecx
call fcn.0046650b
push 0x58
call fcn.00466574
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x44785d
push ebx
call fcn.004453a0
mov edx, dword [esp + 0x44]
push edx
call fcn.0046650b
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov eax, dword [0x7e145c]
mov esi, dword [esp + 0x54]
mov dword [edx], eax
mov dword [0x7e145c], edx
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [edx + 0x54], ebx
repne scasb al, byte es:[edi]
not ecx
cmp cx, 0x50
jle 0x447887
mov ecx, 0x50
movsx ecx, cx
lea edi, [edx + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x40]
push eax
call fcn.0046650b
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret