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

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
xor eax, eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
call fcn.00461ed0
test byte [0x51cd68], 4
je 0x48f79b
mov ebx, dword [0x50deb4]
mov dword [esp + 0x14], ebx
jmp 0x48f7a7
mov dword [esp + 0x14], 0x51cb38
mov ebx, dword [esp + 0x14]
mov eax, dword [0x51d14c]
mov edx, dword [0x51e370]
mov ebp, 4
mov cl, byte [eax + 0x98]
mov edi, dword [eax + 0x88]
mov esi, dword [eax + 0x8c]
cmp edx, ebp
mov byte [esp + 0x13], cl
jg 0x48f7d3
mov edx, ebp
mov ecx, dword [0x51e374]
cmp ecx, ebp
jg 0x48f7df
mov ecx, ebp
mov byte [eax + 0x98], 0
mov eax, dword [0x51d14c]
push ecx
push edx
mov dword [eax + 0x88], ebp
mov eax, dword [0x51d14c]
mov dword [eax + 0x8c], 0x20000200
call fcn.00447a60
mov ecx, dword [0x51d14c]
mov dl, byte [esp + 0x1b]
and esi, 0xfffffff0
add esp, 8
mov byte [ecx + 0x98], dl
mov ecx, dword [0x51d14c]
test eax, eax
mov dword [ecx + 0x88], edi
mov edx, dword [0x51d14c]
mov dword [edx + 0x8c], esi
mov dword [esp + 0x18], eax
je 0x48fd56
mov eax, dword [0x51d14c]
mov edx, dword [0x51e370]
cmp edx, ebp
mov cl, byte [eax + 0x98]
mov edi, dword [eax + 0x88]
mov esi, dword [eax + 0x8c]
mov byte [esp + 0x13], cl
jg 0x48f868
mov edx, ebp
mov ecx, dword [0x51e374]
cmp ecx, ebp
jg 0x48f874
mov ecx, ebp
mov byte [eax + 0x98], 0
mov eax, dword [0x51d14c]
push ecx
push edx
mov dword [eax + 0x88], ebp
mov eax, dword [0x51d14c]
xor ebp, ebp
mov dword [eax + 0x8c], ebp
call fcn.00447a60
mov ecx, dword [0x51d14c]
mov dl, byte [esp + 0x1b]
and esi, 0xfffffff0
add esp, 8
mov byte [ecx + 0x98], dl
mov ecx, dword [0x51d14c]
cmp eax, ebp
mov dword [ecx + 0x88], edi
mov edx, dword [0x51d14c]
mov dword [edx + 0x8c], esi
mov dword [esp + 0x1c], eax
je 0x48fd6b
test dword [ebx + 0xc], 0x40000
je 0x48fd4c
mov eax, dword [esp + 0x18]
test dword [eax + 0xc], 0x20000
je 0x48fd4c
mov cl, byte [0x51e9cc]
mov edx, dword [ebx + 0x38]
lea eax, [ebx + 0x48]
mov byte [esp + 0x13], cl
mov ecx, eax
mov dword [esp + 0x38], edx
mov dword [ebx + 0x38], ebp
mov edx, dword [ecx]
mov dword [esp + 0x3c], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x40], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x44], edx
lea edx, [ebx + 0x58]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x48], ecx
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x1c]
lea esi, [eax + 0x48]
push esi
push ebx
push esi
push eax
call fcn.004482b0
mov eax, dword [esp + 0x28]
mov ecx, dword [0x51cb30]
mov byte [0x51e9cc], 1
mov dword [esp + 0x44], eax
mov dword [0x51cb30], ebp
mov ebp, dword [esi + 4]
mov eax, dword [esi + 0xc]
add esp, 0x10
cmp ebp, eax
mov dword [esp + 0x30], ecx
jg 0x48f9b8
mov edi, dword [esi]
mov eax, dword [esi + 8]
cmp edi, eax
jg 0x48f9b0
lea ebx, [edi + ebp]
mov edx, ebx
mov ecx, dword [esp + 0x34]
and edx, 1
mov eax, dword [edx*4 + 0x513a7c]
push eax
push ebp
push edi
push ecx
call fcn.0044e420
mov eax, dword [esi + 8]
add esp, 0x10
inc edi
inc ebx
cmp edi, eax
jle 0x48f987
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
inc ebp
cmp ebp, eax
jle 0x48f97b
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov dword [0x51cb30], edx
mov ebp, dword [esi + 4]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x34], eax
xor eax, eax
cmp ebp, ecx
mov dword [esp + 0x20], eax
jg 0x48fa48
mov edi, dword [esi]
mov eax, dword [esi + 8]
cmp edi, eax
jg 0x48fa32
lea ecx, [edi + ebp]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x34]
push ebp
push edi
push edx
call fcn.0044e360
mov ecx, dword [esp + 0x30]
add esp, 0xc
and ecx, 1
cmp dword [ecx*4 + 0x513a7c], 0xffffff
jne 0x48fa16
cmp eax, 0x808080
jae 0x48fa21
jmp 0x48fa1d
cmp eax, 0x808080
jbe 0x48fa21
inc dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 8]
inc edi
inc ecx
cmp edi, eax
mov dword [esp + 0x24], ecx
jle 0x48f9ea
mov eax, dword [esi + 0xc]
inc ebp
cmp ebp, eax
jle 0x48f9da
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x48fd02
xor eax, eax
mov edx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
mov dword [edx + 0x38], eax
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [0x51ef74], 0
mov eax, dword [esp + 0x18]
fild dword [esi]
lea edi, [eax + 0x58]
mov dword [esp + 0x30], edi
fst dword [esp + 0x5c]
fild dword [esi + 4]
fst dword [esp + 0x20]
fstp dword [esp + 0x60]
fild dword [esi + 8]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x50], edx
fadd dword [0x5014f4]
fst dword [esp + 0x28]
fstp dword [esp + 0x64]
fild dword [esi + 0xc]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x4c]
fadd dword [0x5014f4]
push ecx
push eax
fst dword [esp + 0x34]
mov edx, dword [esp + 0x34]
fstp dword [esp + 0x70]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x64]
fstp dword [esp + 0x54]
push edx
push ebx
call fcn.0048e3d0
mov eax, dword [0x51a938]
add esp, 0x10
test eax, eax
jne 0x48fd02
mov ebx, dword [esi + 4]
mov eax, dword [esi + 0xc]
cmp ebx, eax
mov dword [esp + 0x20], 0
jg 0x48fb4f
mov edi, dword [esi]
mov eax, dword [esi + 8]
cmp edi, eax
jg 0x48fb43
lea ebp, [edi + ebx]
mov eax, dword [esp + 0x14]
push ebx
push edi
push eax
call fcn.0044e360
mov ecx, ebp
add esp, 0xc
and ecx, 1
cmp dword [ecx*4 + 0x513a7c], 0xffffff
jne 0x48fb2f
cmp eax, 0x808080
jae 0x48fb3a
jmp 0x48fb36
cmp eax, 0x808080
jbe 0x48fb3a
inc dword [esp + 0x20]
mov eax, dword [esi + 8]
inc edi
inc ebp
cmp edi, eax
jle 0x48fb05
mov eax, dword [esi + 0xc]
inc ebx
cmp ebx, eax
jle 0x48faf9
mov edi, dword [esp + 0x30]
mov dword [0x51ef74], 0x3f800000
mov edx, dword [esp + 0x20]
fild dword [esi]
mov ebx, dword [esp + 0x24]
add ebx, edx
fst dword [esp + 0x7c]
fild dword [esi + 4]
mov dword [esp + 0x24], ebx
fst dword [esp + 0x20]
fstp dword [esp + 0x80]
fild dword [esi + 8]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x6c]
fadd dword [0x5014f4]
push eax
mov eax, dword [esp + 0x18]
fst dword [esp + 0x2c]
fstp dword [esp + 0x88]
fild dword [esi + 0xc]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x1c]
fadd dword [0x5014f4]
push ecx
fst dword [esp + 0x34]
mov edx, dword [esp + 0x34]
fstp dword [esp + 0x90]
mov dword [esp + 0x80], edx
lea edx, [esp + 0x84]
fstp dword [esp + 0x74]
push edx
push eax
call fcn.0048e3d0
mov eax, dword [0x51a938]
add esp, 0x10
test eax, eax
mov dword [0x51ef74], 0
jne 0x48fcfe
mov ebx, dword [esi + 4]
mov eax, dword [esi + 0xc]
cmp ebx, eax
mov dword [esp + 0x20], 0
jg 0x48fc60
mov edi, dword [esi]
mov eax, dword [esi + 8]
cmp edi, eax
jg 0x48fc54
lea ebp, [edi + ebx]
mov ecx, dword [esp + 0x14]
push ebx
push edi
push ecx
call fcn.0044e360
mov edx, ebp
add esp, 0xc
and edx, 1
cmp dword [edx*4 + 0x513a7c], 0xffffff
jne 0x48fc40
cmp eax, 0x808080
jae 0x48fc4b
jmp 0x48fc47
cmp eax, 0x808080
jbe 0x48fc4b
inc dword [esp + 0x20]
mov eax, dword [esi + 8]
inc edi
inc ebp
cmp edi, eax
jle 0x48fc16
mov eax, dword [esi + 0xc]
inc ebx
cmp ebx, eax
jle 0x48fc0a
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esi + 8]
mov eax, dword [edi + 8]
add ebp, ebx
cmp ecx, eax
mov dword [esp + 0x34], ebp
jne 0x48fc82
mov edx, dword [esi + 0xc]
mov ebx, dword [edi + 0xc]
cmp edx, ebx
je 0x48fca5
inc ecx
cmp ecx, eax
jge 0x48fc89
mov eax, ecx
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [edi + 0xc]
inc eax
cmp eax, ecx
jl 0x48fc99
mov eax, ecx
mov ebx, dword [esp + 0x14]
mov dword [esi + 0xc], eax
jmp 0x48fa62
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x74]
mov ebx, dword [eax + 0x70]
call fcn.00461ed0
push eax
mov eax, dword [esp + 0x28]
push ebp
push eax
push edi
push ebx
push str.D3D_Texel_coordinates_BitmapTested__d__d_:_errors_on_Basic:_d_Vs_Custom:_d___dMS_
push 0x3e
call fcn.00441cd0
mov eax, dword [esp + 0x40]
add esp, 0x1c
cmp eax, ebp
ja 0x48fce5
mov dword [0x51ef74], 0
push str.D3D_uses_Basic_Texel_system
jmp 0x48fcf4
mov dword [0x51ef74], 0x3f800000
push str.D3D_uses_CUSTOM_Texel_system_to_fix_rendering_error
push 0x3e
call fcn.00441cd0
add esp, 8
mov ebx, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
mov edx, dword [esp + 0x1c]
mov byte [0x51e9cc], cl
push esi
mov dword [edx + 0x38], 0
mov eax, dword [esp + 0x20]
push eax
push esi
push ebx
call fcn.004482b0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [ebx + 0x48], ecx
mov ecx, dword [esp + 0x58]
mov dword [ebx + 0x4c], edx
mov edx, dword [esp + 0x48]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], ecx
add esp, 0x10
mov dword [ebx + 0x38], edx
jmp 0x48fd56
mov dword [0x51a938], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x48fd6b
lea eax, [esp + 0x1c]
push eax
call fcn.0044b6b0
add esp, 4
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x48fd84
lea ecx, [esp + 8]
push ecx
call fcn.0044b6b0
add esp, 4
mov dword [0x51a938], 0
add esp, 0x7c
ret