Function at 0x43b840
Capabilities:
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x4fc00c]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
mov bl, byte [ebp + 0x24]
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 1
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], ecx
push edi
test bl, bl
je 0x43b8a7
mov dword [esp + 0x1c], 4
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], 1
movzx eax, word [ebp + 0x10]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
mov bh, byte [ebp + 0x18]
mov dword [esp + 0x14], eax
cdq
mov dword [esp + 0x40], eax
movzx eax, word [ebp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x20]
movlpd qword [esp + 0x34], xmm0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x30], 3
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
test edi, edi
jne 0x43b930
movzx eax, bh
mov word [esp + 0x4e], ax
mov dword [esp + 0x60], 4
jmp 0x43b9aa
cmp edi, 1
je 0x43b9a2
cmp edi, 4
jne 0x43b94e
movzx eax, bh
mov word [esp + 0x4e], ax
mov eax, 6
mov word [esp + 0x4c], ax
jmp 0x43b9a2
cmp edi, 2
je 0x43b962
cmp edi, 5
jne 0x43b99d
mov edx, 6
mov word [esp + 0x4c], dx
mov dword [esp + 0x68], eax
lea eax, [esi + 4]
push eax
push 0x4f0388
lea eax, [esp + 0x70]
mov dword [esp + 0x68], 2
push eax
mov dword [esp + 0x78], 0x3f800000
mov byte [esp + 0x7c], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
push 0x10
jmp 0x43b9c5
cmp edi, 3
jne 0x43b9aa
mov dword [esp + 0x60], 5
lea eax, [esi + 4]
test bl, bl
push eax
push 0x4f0388
mov eax, 0x400
mov edx, 0xac3
push 0
cmovne eax, edx
push eax
mov ecx, dword [ecx]
lea eax, [esp + 0x40]
push eax
push 0
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x2c]
call dword [ecx + 0x6c]
test eax, eax
jns 0x43b9ff
push str.C12Tex_Create_Texture_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0047d312
mov esp, ebp
pop ebp
ret 0x20
movd xmm0, dword [esp + 0x14]
movss xmm2, dword [0x4f3cd0]
cvtdq2ps xmm0, xmm0
mov ax, word [ebp + 0x10]
mov ecx, dword [ebp + 0x20]
mov word [esi + 8], ax
mov ax, word [ebp + 0x14]
movaps xmm1, xmm2
mov word [esi + 0xa], ax
divss xmm1, xmm0
mov eax, dword [esp + 0x60]
shr eax, 2
and al, 1
mov dword [esi + 0x14], ecx
mov byte [esi + 0x20], al
lea eax, [ecx - 2]
mov byte [esi + 0x18], bh
mov byte [esi + 0x19], 1
mov dword [esi], edi
mov byte [esi + 0x21], bl
movd xmm0, dword [esp + 0x18]
movss dword [esi + 0xc], xmm1
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movss dword [esi + 0x10], xmm2
cmp eax, 0x56
ja case.0x43ba6b.3
movzx eax, byte [eax + 0x43bacc]
jmp dword [eax*4 + 0x43bab4]
mov dword [esi + 0x1c], 0x1688
jmp 0x43ba9d
mov dword [esi + 0x1c], 0x180a
jmp 0x43ba9d
mov dword [esi + 0x1c], 0x1920
jmp 0x43ba9d
mov dword [esi + 0x1c], 0x1908
jmp 0x43ba9d
mov dword [esi + 0x1c], 0x1b6d
mov ecx, dword [esp + 0x7c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047d312
mov esp, ebp
pop ebp
ret 0x20