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

Disassembly:
sub esp, 0x4c
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
push edi
mov ebp, ecx
lea esi, [ebx + 0x1c]
mov edi, 4
mov eax, dword [ebx]
push dword [esp + 0x7c]
push dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd0]
lea esi, [esi + 4]
sub edi, 1
jne 0x4d9995
mov edi, dword [esp + 0x68]
lea esi, [ebx + 0x850]
mov eax, 2
mov dword [esp + 0x64], eax
mov edx, dword [esi]
test edx, edx
je 0x4d99d8
mov eax, dword [ebx]
push edi
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [esp + 0x64]
add esi, 4
add edi, 0x10
sub eax, 1
mov dword [esp + 0x64], eax
jne 0x4d99c1
mov eax, dword [ebx]
push str.PostProcess
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe8]
mov ecx, dword [esp + 0x60]
push dword [ebp]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x15c]
mov eax, dword [ebx]
lea edx, [esp + 0x20]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xfc]
xor edx, edx
mov dword [esp + 0x18], edx
cmp dword [esp + 0x20], edx
jbe 0x4d9d76
nop dword [eax]
mov esi, dword [esp + 0x70]
xor al, al
mov byte [esp + 0x64], al
mov eax, dword [esp + 0x74]
movss xmm0, dword [esi + 0x30]
movss xmm1, dword [eax]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x4d9a5f
movss dword [esi + 0x70], xmm1
movss dword [esi + 0x30], xmm1
mov byte [esp + 0x64], 1
mov eax, dword [esp + 0x78]
movss xmm0, dword [esi + 0x54]
movss xmm1, dword [eax]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x4d9a84
movss dword [esi + 0x74], xmm1
movss dword [esi + 0x54], xmm1
mov byte [esp + 0x64], 1
mov ecx, dword [ebx]
push edx
push dword [ebx + 4]
mov dword [esp + 0x70], 0x3f800000
mov dword [esp + 0x1c], 0x3f800000
mov eax, dword [ecx]
push ecx
call dword [eax + 0x38]
mov edx, dword [ebx]
mov edi, eax
push str.fScaleX
push edi
push edx
mov ecx, dword [edx]
call dword [ecx + 0x4c]
test eax, eax
je 0x4d9ac6
mov ecx, dword [ebx]
lea esi, [esp + 0x68]
push esi
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x7c]
mov esi, dword [esp + 0x70]
mov ecx, dword [ebx]
push str.fScaleY
push edi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x4c]
test eax, eax
je 0x4d9ae6
mov ecx, dword [ebx]
lea edi, [esp + 0x14]
push edi
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x7c]
movss xmm1, dword [esp + 0x68]
movss xmm2, dword [0x5c7128]
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jnp 0x4d9b18
movaps xmm0, xmm1
mov al, 1
mulss xmm0, dword [esi + 0x20]
mulss xmm1, dword [esi + 0x60]
movss dword [esi + 0x20], xmm0
movss dword [esi + 0x60], xmm1
jmp 0x4d9b1c
mov al, byte [esp + 0x64]
movss xmm1, dword [esp + 0x14]
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jnp 0x4d9b44
movaps xmm0, xmm1
mulss xmm1, dword [esi + 0x64]
mulss xmm0, dword [esi + 0x44]
movss dword [esi + 0x64], xmm1
movss dword [esi + 0x44], xmm0
jmp 0x4d9b48
test al, al
je 0x4d9b79
mov edi, dword [esp + 0x6c]
lea ecx, [esp + 0x24]
push 0x2000
push ecx
push 0
mov eax, dword [edi]
push 0
push edi
call dword [eax + 0x2c]
test eax, eax
js 0x4d9b79
mov edi, dword [esp + 0x24]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x6c]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [ebx]
push str.g_Extent
push 0
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
je 0x4d9bbc
mov ecx, dword [esp + 0x74]
lea esi, [esp + 0x28]
push esi
push eax
movss xmm0, dword [ecx]
mov ecx, dword [esp + 0x80]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [ecx]
mov ecx, dword [ebx]
movss dword [esp + 0x34], xmm0
push ecx
mov edx, dword [ecx]
call dword [edx + 0x88]
mov eax, dword [esp + 0x74]
movss xmm0, dword [esp + 0x68]
mov ecx, dword [ebx]
push str.g_texelScale
mulss xmm0, dword [eax]
push 0
push ecx
movss dword [eax], xmm0
mov eax, dword [esp + 0x84]
movss xmm0, dword [esp + 0x20]
mulss xmm0, dword [eax]
movss dword [eax], xmm0
mov eax, dword [ecx]
call dword [eax + 0x24]
mov edx, eax
test edx, edx
je 0x4d9c1d
mov ecx, dword [ebx]
lea esi, [esp + 0x38]
movss xmm0, dword [0x5de11c]
push esi
movss dword [esp + 0x40], xmm0
movss dword [esp + 0x3c], xmm0
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x88]
mov ecx, dword [ebx]
push str.g_textureSize
push 0
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
mov edx, eax
test edx, edx
je 0x4d9c71
movd xmm0, dword [0x5de124]
lea esi, [esp + 0x48]
mov eax, dword [ebx]
cvtdq2ps xmm0, xmm0
push esi
push edx
push eax
mulss xmm0, dword [esp + 0x74]
movss dword [esp + 0x54], xmm0
movd xmm0, dword [0x5de120]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x20]
movss dword [esp + 0x58], xmm0
mov ecx, dword [eax]
call dword [ecx + 0x88]
lea esi, [ebx + 0xc]
mov edi, 4
nop dword [eax]
cmp byte [ebp + 8], 0
mov edx, dword [ebx]
mov ecx, dword [edx]
je 0x4d9c90
push dword [esp + 0x7c]
jmp 0x4d9c9c
mov eax, 3
sub eax, dword [ebp + 4]
push dword [ebp + eax*4 + 4]
push dword [esi]
push edx
call dword [ecx + 0xd0]
mov ecx, 4
mov eax, ebp
add eax, ecx
add esi, ecx
mov dword [esp + 0x64], eax
sub edi, 1
jne 0x4d9c80
mov eax, dword [ebx]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x104]
mov esi, dword [esp + 0x64]
lea edx, [esp + 0x1c]
push edx
push edi
mov eax, dword [esi]
mov ecx, dword [esi + eax*4 + 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x48]
test eax, eax
js 0x4d9d83
mov edi, dword [esp + 0x60]
push dword [esp + 0x1c]
push 0
mov eax, dword [edi]
push edi
call dword [eax + 0x94]
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0
push ecx
mov dword [esp], 0x3f800000
push 0
push 7
push 0
mov byte [ebp + 8], 0
mov eax, dword [edi]
push 0
push edi
call dword [eax + 0xac]
mov eax, dword [ebx]
push dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x100]
mov eax, dword [edi]
push 0x20
push 0
push dword [esp + 0x74]
push 0
push edi
call dword [eax + 0x190]
mov eax, dword [edi]
push 2
push 0
push 5
push edi
call dword [eax + 0x144]
mov eax, dword [ebx]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x108]
mov edx, dword [esp + 0x18]
mov eax, 1
sub eax, dword [esi]
inc edx
mov dword [esi], eax
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x20]
jb 0x4d9a30
mov eax, dword [ebx]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x20