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

Disassembly:
sub esp, 0x50
mov eax, dword [0x102a0600]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0x64]
mov edx, 0x1c
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
cmp byte [ebx + 0xe], cl
mov eax, dword [esp + 0x68]
cmovne ecx, edx
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x14], ebx
cmp byte [ebx + 0xd], al
push ebp
movzx ebp, byte [ebx + 0x19]
cmove eax, edx
push esi
movzx esi, byte [ebx + 0x1b]
inc ebp
push edi
lea edx, [eax + 0x1016aef8]
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x64]
add edx, ecx
mov dword [esp + 0x1c], edx
test byte [eax + 1], 8
je 0x1004d6a1
movzx eax, word [ebx + 8]
mov cl, byte [eax + 0x1016af4c]
mov al, cl
shr al, 2
and cl, 3
mov byte [esp + 0x10], al
mov byte [esp + 0x11], al
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], cl
jmp 0x1004d749
test byte [eax + 3], 0x10
je 0x1004d6bd
cmp dword [esp + 0x78], 0
je 0x1004d6bd
mov dword [esp + 0x18], 0xc
mov ecx, 1
jmp 0x1004d6c5
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x18], eax
movzx ebp, word [ebx + 8]
mov ebx, dword [esp + 0x18]
shr ebp, cl
lea esi, [ebx + 0x1016af5d]
mov dword [esp + 0x18], esi
nop dword [eax]
movzx ecx, byte [esi + 2]
mov eax, ebp
cdq
add ebx, 4
idiv ecx
movzx esi, byte [esi + 1]
mov byte [esp + 0x13], dl
cdq
idiv esi
mov eax, dword [esp + 0x18]
imul esi, ecx
mov byte [esp + 0x12], dl
movzx edi, byte [eax]
mov eax, ebp
cdq
idiv esi
cdq
idiv edi
imul edi, esi
mov eax, ebp
mov byte [esp + 0x11], dl
cdq
mov esi, dword [esp + 0x18]
idiv edi
movzx ecx, byte [esi - 1]
add esi, 4
cdq
idiv ecx
imul ecx, edi
mov byte [esp + 0x10], dl
mov dword [esp + 0x18], esi
sub ebp, ecx
jns 0x1004d6e0
mov edx, dword [esp + 0x1c]
mov esi, 0xfffffff0
mov ebp, dword [esp + 0x24]
add edx, ebx
mov ebx, dword [esp + 0x20]
push esi
push dword [esp + 0x2c]
lea eax, [esp + 0x18]
push edx
push eax
push dword [esp + 0x3c]
lea eax, [esp + 0x48]
push eax
call fcn.1004ef30
mov al, byte [ebx + 0xe]
add esp, 0x18
test al, al
je 0x1004d7d3
mov ecx, 3
movzx edi, al
sub ecx, ebp
test al, al
je 0x1004d807
mov dl, byte [ebx + 0x15]
lea esi, [esp + 0x35]
movzx eax, byte [ebx + 0xd]
shl dl, cl
add esi, eax
mov byte [esp + 0x15], dl
mov eax, 0xaaaaaaab
mov dl, byte [ebx + 0x16]
shl dl, cl
mov byte [esp + 0x16], dl
mov dl, byte [ebx + 0x17]
shl dl, cl
lea ecx, [edi - 1]
mov byte [esp + 0x17], dl
mul ecx
mov al, byte [esp + 0x15]
mov cl, byte [esp + 0x16]
mov ah, byte [esp + 0x17]
shr edx, 1
inc edx
nop dword [eax]
add byte [esi - 1], al
lea esi, [esi + 3]
add byte [esi - 3], cl
add byte [esi - 2], ah
sub edx, 1
jne 0x1004d7c0
jmp 0x1004d807
cmp byte [ebx + 0x18], 0
je 0x1004d807
inc byte [esp + 0x3f]
inc byte [esp + 0x40]
inc byte [esp + 0x41]
inc byte [esp + 0x42]
add byte [esp + 0x43], 2
add byte [esp + 0x44], 2
add byte [esp + 0x45], 3
add byte [esp + 0x46], 3
add byte [esp + 0x47], 3
add byte [esp + 0x48], 2
mov eax, dword [esp + 0x64]
xor esi, esi
movss xmm2, dword [0x1016c72c]
mov ecx, 2
mov al, byte [eax + 3]
and al, 0xe0
cmp al, 0x60
movzx eax, byte [ebx + 0xa]
cmove esi, ecx
sub esi, eax
add esi, 0x102
mov edx, 0x78
mov eax, 0x40000000
cmp esi, edx
cmovl edx, esi
mov ecx, edx
sub esi, edx
sar ecx, 2
sar eax, cl
movd xmm0, eax
mov eax, edx
cvtdq2ps xmm0, xmm0
and eax, 3
mulss xmm0, dword [eax*4 + 0x1016aee8]
mulss xmm2, xmm0
test esi, esi
jg 0x1004d830
movzx ecx, byte [ebx + 0xe]
xor edi, edi
movzx eax, byte [ebx + 0xd]
add ecx, eax
je 0x1004d8cd
movzx esi, byte [esp + edi + 0x34]
mov ecx, ebp
shl esi, cl
movaps xmm1, xmm2
nop
mov edx, 0x78
mov eax, 0x40000000
cmp esi, edx
cmovl edx, esi
mov ecx, edx
sub esi, edx
sar ecx, 2
sar eax, cl
movd xmm0, eax
mov eax, edx
cvtdq2ps xmm0, xmm0
and eax, 3
mulss xmm0, dword [eax*4 + 0x1016aee8]
mulss xmm1, xmm0
test esi, esi
jg 0x1004d880
mov eax, dword [esp + 0x30]
movss dword [eax + edi*4], xmm1
inc edi
movzx ecx, byte [ebx + 0xe]
movzx eax, byte [ebx + 0xd]
add ecx, eax
cmp edi, ecx
jl 0x1004d873
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10084465
add esp, 0x50
ret