Function at 0x425490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4c473a
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x8c]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.engine.dll_class_Xenesis2::Foundation::Memory::xEncryptMemory____cdecl_Xenesis2::Foundation::Memory::theEncryptMemory_void_]
mov ecx, eax
call fcn.004067e0
mov eax, dword [esp + 0x20]
test eax, eax
mov ebx, dword [esp + 0x58]
je 0x425529
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x6c]
mov ebp, dword [esi + 0x68]
mov edx, dword [esi + 0x70]
add eax, ecx
add edx, ebp
cmp ecx, eax
mov edi, eax
jg 0x4254ed
mov edi, ecx
cmp ecx, eax
mov dword [esp + 0x20], edi
jl 0x4254f7
mov eax, ecx
cmp ebp, edx
mov dword [esp + 0x28], eax
mov eax, edx
jg 0x425503
mov eax, ebp
cmp ebp, edx
mov dword [esp + 0x24], eax
jl 0x42550d
mov edx, ebp
push 0xcb
mov dword [esp + 0x30], edx
push 0xffffffffffffffff
lea edx, [esp + 0x28]
push edx
lea eax, [esi + 4]
push eax
mov ecx, ebx
call dword [sym.imp.engine.dll_public:_void___thiscall_CDrawPort::PutTexture_class_CTextureObject___class_AABBox_long_int__2__const___unsigned_long_int__unsigned_long_int_const]
movzx ebp, byte [esi + 0x84]
mov edx, dword [esi + 0x98]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
or ebp, 0xffffff00
call dword [sym.imp.engine.dll_class_Xenesis2::Foundation::Memory::xEncryptMemory____cdecl_Xenesis2::Foundation::Memory::theEncryptMemory_void_]
mov ecx, eax
call fcn.004067e0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x425566
movzx ebp, byte [esi + 0x84]
or ebp, 0x7f7f7f00
cmp word [esi + 0xac], 0
je 0x4255aa
cmp dword [esi], 0
jne 0x4255aa
mov edx, dword [esi + 0x80]
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x64]
push 0xcb
push ebp
push edx
mov edx, dword [esi + 0x7c]
push edx
mov edx, dword [esi + 0x78]
push 0
push 0
add edx, eax
push edx
mov edx, dword [esi + 0x74]
add edx, ecx
push edx
push eax
push ecx
lea eax, [esi + 0x1c]
push eax
mov ecx, ebx
call dword [sym.imp.engine.dll_public:_void___thiscall_CDrawPort::DrawTexture_class_CTextureObject___int__int__int__int__int__int__int__int__unsigned_long_int__unsigned_long_int_const]
mov eax, dword [esi + 0xa8]
dec eax
je 0x4255e2
dec eax
mov edi, dword [sym.imp.engine.dll_public:_void___thiscall_CDrawPort::Fill_long_int__long_int__long_int__long_int__unsigned_long_int_const]
jne 0x42560f
movzx ecx, byte [esi + 0x84]
mov edx, dword [esi + 0x70]
mov eax, dword [esi + 0x6c]
shr ecx, 1
or ecx, 0xff000000
push ecx
mov ecx, dword [esi + 0x68]
push edx
mov edx, dword [esi + 0x64]
push eax
push ecx
push edx
mov ecx, ebx
call edi
jmp 0x42560f
movzx eax, byte [esi + 0x84]
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x6c]
or eax, 0x1fe0000
shr eax, 1
push eax
mov eax, dword [esi + 0x68]
push ecx
mov ecx, dword [esi + 0x64]
push edx
push eax
push ecx
mov ecx, ebx
call dword [sym.imp.engine.dll_public:_void___thiscall_CDrawPort::Fill_long_int__long_int__long_int__long_int__unsigned_long_int_const]
mov edi, dword [sym.imp.engine.dll_public:_void___thiscall_CDrawPort::Fill_long_int__long_int__long_int__long_int__unsigned_long_int_const]
mov ax, word [esi + 0xac]
test ax, ax
je 0x4258ba
cmp dword [esi], 0
jne 0x4258ba
cmp dword [esi + 0xa0], 1
jne 0x425844
push eax
call fcn.00402cf0
add esp, 4
test eax, eax
mov dword [esp + 0x20], eax
je 0x4257ba
cmp byte [eax + 0x28], 2
jne 0x425707
lea edi, [esi + 0x34]
mov ecx, edi
mov dword [esp + 0x58], 0x2b
call dword [sym.imp.engine.dll_public:_long_int___thiscall_CTextureObject::GetPixWidth_void_const]
lea edx, [esi + 0x6c]
mov dword [esp + 0x10], eax
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004034e0
add esp, 0xc
mov ecx, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x58], 0x2b
call dword [sym.imp.engine.dll_public:_long_int___thiscall_CTextureObject::GetPixHeight_void_const]
lea edx, [esi + 0x70]
mov dword [esp + 0x10], eax
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004034e0
mov ecx, dword [esi + 0x78]
mov edx, dword [esi + 0x68]
sub ecx, eax
add ecx, edx
mov edx, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x64]
add edx, eax
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x5c]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], edx
call fcn.00413c30
push 0xcb
push ebp
lea edx, [esp + 0x40]
push edx
push edi
mov ecx, ebx
call dword [sym.imp.engine.dll_public:_void___thiscall_CDrawPort::PutTexture_class_CTextureObject___class_AABBox_long_int__2__const___unsigned_long_int__unsigned_long_int_const]
mov eax, dword [esp + 0x20]
mov cl, byte [eax + 0x29]
test cl, cl
je 0x4257ba
lea edi, [esi + 0x4c]
mov ecx, edi
mov dword [esp + 0x58], 0x2b
call dword [sym.imp.engine.dll_public:_long_int___thiscall_CTextureObject::GetPixWidth_void_const]
mov dword [esp + 0x20], eax
lea eax, [esi + 0x6c]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.004034e0
add esp, 0xc
mov ecx, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x58], 0x2b
call dword [sym.imp.engine.dll_public:_long_int___thiscall_CTextureObject::GetPixHeight_void_const]
mov dword [esp + 0x20], eax
lea eax, [esi + 0x70]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.004034e0
mov ecx, dword [esi + 0x68]
mov edx, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x64]
add edx, eax
add esp, 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x5c]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x2c], edx
call fcn.00413c30
push 0xcb
push ebp
lea edx, [esp + 0x40]
push edx
push edi
mov ecx, ebx
call dword [sym.imp.engine.dll_public:_void___thiscall_CDrawPort::PutTexture_class_CTextureObject___class_AABBox_long_int__2__const___unsigned_long_int__unsigned_long_int_const]
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0xc0]
mov edi, dword [esi + 0x74]
sub eax, 0xc
mov dword [esp + 0x58], eax
push 1
lea eax, [esp + 0x3c]
push eax
push ecx
sub edi, 2
mov dword [esp + 0x3c], 0
call dword [sym.imp.engine.dll_class_Xenesis2::Foundation::Memory::xEncryptMemory____cdecl_Xenesis2::Foundation::Memory::theEncryptMemory_void_]
mov ecx, eax
call fcn.004067e0
mov edx, dword [esp + 0x38]
push edx
push 0x4d5770
lea eax, [esp + 0x3c]
push 0
push eax
call dword [sym.imp.engine.dll_public:_void___cdecl_CTString::constructor_long_int__char_const__]
add esp, 0x10
mov edx, dword [esi + 0x68]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esi + 0x64]
push ebp
add edx, dword [esp + 0x60]
push edx
add ecx, edi
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x64], 0
call dword [sym.imp.engine.dll_public:_void___thiscall_CDrawPort::PutTextR_class_CTString_const___long_int__long_int__unsigned_long_int__int_const__const]
lea ecx, [esp + 0x34]
mov dword [esp + 0x50], 0xffffffff
call dword [sym.imp.engine.dll_public:_void___thiscall_CTString::destructor_void_]
mov edi, dword [sym.imp.engine.dll_public:_void___thiscall_CDrawPort::Fill_long_int__long_int__long_int__long_int__unsigned_long_int_const]
cmp dword [esi + 0xa4], 1
jne 0x4258ba
movzx ebp, byte [esi + 0x84]
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x64]
or ebp, 0xffbb4000
push ebp
push 1
dec edx
push edx
push eax
push ecx
mov ecx, ebx
call edi
mov edx, dword [esi + 0x78]
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x64]
push ebp
dec edx
push edx
mov edx, dword [esi + 0x74]
push 1
push eax
lea eax, [ecx + edx - 1]
push eax
mov ecx, ebx
call edi
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x78]
mov eax, dword [esi + 0x68]
push ebp
dec ecx
push 1
push ecx
lea ecx, [edx + eax - 1]
mov edx, dword [esi + 0x64]
push ecx
inc edx
push edx
mov ecx, ebx
call edi
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x64]
push ebp
dec eax
push eax
push 1
inc ecx
push ecx
push edx
mov ecx, ebx
call edi
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 4