Function at 0x445510
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x40
push ebp
push esi
mov esi, dword [esp + 0x54]
push edi
mov eax, dword [esi + 0x58]
mov dword [0x7e1454], eax
mov ecx, dword [esi + 0x5c]
mov eax, dword [esp + 0x54]
mov dword [0x7e0e38], ecx
mov edx, dword [esi + 0x60]
push eax
mov dword [0x7e1450], edx
call fcn.00446c90
add esp, 4
test eax, eax
jne 0x445ab7
mov edi, dword [esp + 0x50]
lea ecx, [esp + 0x40]
push ecx
push edi
call fcn.00445ac0
add esp, 8
test eax, eax
jne 0x44557f
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.MISSING_TEXTURE:
call esi
push edi
call esi
push 0x4ae5c4
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x40
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 ebp, eax
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x2c], ebp
je 0x445aa8
mov eax, dword [esp + 0x44]
mov cx, word [ebp + 4]
cmp cx, word [eax + 2]
jne 0x4455cd
mov dx, word [ebp + 6]
cmp dx, word [eax + 8]
jne 0x4455cd
lea eax, [esp + 0x40]
push ebp
push eax
call fcn.00445be0
jmp 0x4455d8
lea ecx, [esp + 0x40]
push ebp
push ecx
call fcn.00445c50
add esp, 8
lea edx, [esp + 0x40]
push 0x7e0f40
push edx
call fcn.00445d10
mov edx, dword [esi + 0x58]
add esp, 8
mov eax, 0xf
mov ecx, 0x8000
test ecx, edx
jne 0x445605
dec eax
shr ecx, 1
test eax, eax
jg 0x4455fa
mov edi, dword [esi + 0x5c]
lea edx, [eax - 7]
mov eax, 0xf
mov ecx, 0x8000
test ecx, edi
jne 0x445620
dec eax
shr ecx, 1
test eax, eax
jg 0x445615
push ebx
mov ebx, dword [esi + 0x60]
lea ecx, [eax - 7]
mov eax, 0xf
mov edi, 0x8000
test edi, ebx
jne 0x44563c
dec eax
shr edi, 1
test eax, eax
jg 0x445631
xor edi, edi
add eax, 0xfffffff9
cmp dx, di
jge 0x445773
movsx eax, ax
neg edx
movsx edx, dx
movsx ecx, cx
mov dword [esp + 0x20], eax
mov eax, 0x7e0f42
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x40], 0x100
xor edx, edx
xor ecx, ecx
mov dl, byte [eax - 2]
mov cl, byte [eax - 1]
xor ebx, ebx
mov edi, edx
mov bl, byte [eax]
mov eax, 0x7f0000
shl edi, 0x10
sub eax, edi
mov dword [esp + 0x38], 0x10
sar eax, 4
mov dword [esp + 0x10], eax
mov eax, 0x7f0000
shl ecx, 0x10
sub eax, ecx
sar eax, 4
mov dword [esp + 0x14], eax
mov eax, 0x7f0000
shl ebx, 0x10
sub eax, ebx
mov dword [esp + 0x5c], ebx
sar eax, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
jmp 0x4456d3
mov ecx, dword [esp + 0x18]
mov ebp, ebx
mov ebx, dword [esp + 0x10]
mov eax, edi
add edi, ebx
mov ebx, dword [esp + 0x14]
mov edx, ecx
add ecx, ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
add ebx, ecx
mov ecx, dword [esp + 0x28]
sar eax, 0x10
sar eax, cl
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x5c], ebx
sar edx, 0x10
shl edx, cl
mov ecx, dword [esp + 0x20]
and ax, word [esi + 0x58]
sar ebp, 0x10
shl ebp, cl
and dx, word [esi + 0x5c]
mov ecx, dword [esp + 0x34]
add ecx, 0x200
add eax, edx
mov edx, dword [0x7e1464]
and bp, word [esi + 0x60]
mov dword [esp + 0x34], ecx
add eax, ebp
mov word [ecx + edx - 0x200], ax
mov eax, dword [esp + 0x38]
dec eax
mov dword [esp + 0x38], eax
jne 0x4456cf
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
add edi, 2
add eax, 4
dec ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
jne 0x445676
jmp 0x4459c9
cmp cx, di
jge 0x4458a5
neg ecx
movsx ecx, cx
movsx eax, ax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
movsx ecx, dx
mov eax, 0x7e0f42
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], 0x100
xor edx, edx
xor ecx, ecx
mov dl, byte [eax - 2]
mov cl, byte [eax - 1]
xor ebx, ebx
mov edi, edx
mov bl, byte [eax]
mov eax, 0x7f0000
shl edi, 0x10
sub eax, edi
mov dword [esp + 0x3c], 0x10
sar eax, 4
mov dword [esp + 0x10], eax
mov eax, 0x7f0000
shl ecx, 0x10
sub eax, ecx
sar eax, 4
mov dword [esp + 0x14], eax
mov eax, 0x7f0000
shl ebx, 0x10
sub eax, ebx
mov dword [esp + 0x5c], ebx
sar eax, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
jmp 0x445805
mov ecx, dword [esp + 0x18]
mov ebp, ebx
mov ebx, dword [esp + 0x10]
mov edx, edi
add edi, ebx
mov ebx, dword [esp + 0x14]
mov eax, ecx
add ecx, ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
add ebx, ecx
mov ecx, dword [esp + 0x24]
sar eax, 0x10
sar eax, cl
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x5c], ebx
sar ebp, 0x10
shl ebp, cl
mov ecx, dword [esp + 0x28]
and ax, word [esi + 0x5c]
sar edx, 0x10
shl edx, cl
and bp, word [esi + 0x60]
mov ecx, dword [esp + 0x40]
add ecx, 0x200
add eax, ebp
mov dword [esp + 0x40], ecx
and dx, word [esi + 0x58]
add eax, edx
mov edx, dword [0x7e1464]
mov word [ecx + edx - 0x200], ax
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x3c], eax
jne 0x445801
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
add edi, 2
add eax, 4
dec ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
jne 0x4457a8
jmp 0x4459c9
neg eax
movsx eax, ax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], edi
movsx eax, cx
movsx edx, dx
mov dword [esp + 0x24], eax
mov eax, 0x7e0f42
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], 0x100
xor ecx, ecx
xor ebx, ebx
mov cl, byte [eax - 2]
mov bl, byte [eax]
mov edi, ecx
xor ecx, ecx
mov cl, byte [eax - 1]
mov eax, 0x7f0000
shl edi, 0x10
sub eax, edi
mov edx, dword [esp + 0x2c]
sar eax, 4
mov dword [esp + 0x10], eax
mov eax, 0x7f0000
shl ecx, 0x10
sub eax, ecx
mov dword [esp + 0x40], edx
sar eax, 4
mov dword [esp + 0x14], eax
mov eax, 0x7f0000
shl ebx, 0x10
sub eax, ebx
mov dword [esp + 0x5c], ebx
sar eax, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], 0x10
jmp 0x44592e
mov ecx, dword [esp + 0x18]
mov eax, ebx
mov ebx, dword [esp + 0x10]
mov edx, edi
add edi, ebx
mov ebx, dword [esp + 0x14]
mov ebp, ecx
add ecx, ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
add ebx, ecx
mov ecx, dword [esp + 0x20]
sar eax, 0x10
sar eax, cl
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x5c], ebx
sar ebp, 0x10
shl ebp, cl
mov ecx, dword [esp + 0x28]
and ax, word [esi + 0x60]
sar edx, 0x10
shl edx, cl
and bp, word [esi + 0x5c]
mov ecx, dword [esp + 0x40]
add ecx, 0x200
add eax, ebp
mov dword [esp + 0x40], ecx
and dx, word [esi + 0x58]
add eax, edx
mov edx, dword [0x7e1464]
mov word [ecx + edx - 0x200], ax
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x3c], eax
jne 0x44592a
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
add edi, 2
add eax, 4
dec ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
jne 0x4458d1
mov ebp, dword [esp + 0x30]
mov bl, byte [esp + 0x60]
push ebp
call fcn.00446c50
push ebp
call fcn.00445360
add esp, 8
test eax, eax
je 0x4459ec
mov eax, dword [ebp + 8]
or al, 1
mov dword [ebp + 8], eax
test bl, 1
je 0x4459fa
push ebp
call fcn.004464b0
add esp, 4
test bl, 4
je 0x445a08
push ebp
call fcn.00446770
add esp, 4
test bl, 8
je 0x445a16
push ebp
call fcn.00446920
add esp, 4
test bl, 0x10
pop ebx
je 0x445a25
push ebp
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 0x445a68
push ebp
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
add esp, 0x40
ret
mov eax, dword [0x7e145c]
mov edi, dword [esp + 0x50]
mov dword [edx], eax
mov dword [0x7e145c], edx
or ecx, 0xffffffff
xor eax, eax
mov dword [edx + 0x54], ebp
repne scasb al, byte es:[edi]
not ecx
cmp cx, 0x50
jle 0x445a90
mov ecx, 0x50
mov esi, dword [esp + 0x54]
lea edi, [edx + 4]
movsx ecx, cx
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, ebp
pop edi
pop esi
pop ebp
add esp, 0x40
ret