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

Disassembly:
mov ecx, dword [0xf33f68]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a27b8
sub esp, 0x6c
mov edx, dword [esp + 0x70]
test edx, edx
sete bl
mov ebp, dword [esp + 0x74]
test ebp, ebp
xchg edi, ebx
sete bl
xchg edi, ebx
and ebx, edi
test bl, bl
je 0x4a22ec
movzx eax, byte [esp + 0x7c]
test al, al
je 0x4a22d4
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0x80000000
movsd xmm0, qword [esp + 0x40]
jmp 0x4a22d7
xorps xmm0, xmm0
movsd qword [esp + 0x80], xmm0
mov byte [esp + 0x88], 1
add esp, 0x6c
ret
mov ebx, dword [esp + 0x78]
lea edi, [ebx + 0x15c]
cmp edi, 0x2b7
ja 0x4a2785
nop
cmp ebp, 1
seta al
sete cl
and ecx, 1
or eax, ecx
test al, al
je 0x4a231e
xor ecx, ecx
mov esi, 0x20
jmp 0x4a2324
mov ecx, ebp
mov ebp, edx
xor esi, esi
mov dword [esp + 0x68], edi
test ecx, ecx
seta al
sete dl
cmp ebp, 0x10000
xchg edi, ebx
setae bl
xchg edi, ebx
and edi, edx
or edi, eax
xchg edi, eax
test al, al
xchg edi, eax
je 0x4a2357
shr ebp, 0x10
mov edx, ecx
shl edx, 0x10
or ebp, edx
shr ecx, 0x10
add esi, 0x10
test ecx, ecx
seta dl
xchg edi, ebx
sete bl
xchg edi, ebx
cmp ebp, 0x100
setae al
and eax, edi
or eax, edx
test al, al
je 0x4a2384
shr ebp, 8
mov edx, ecx
shl edx, 0x18
or ebp, edx
shr ecx, 8
add esi, 8
test ecx, ecx
jne 0x4a27a9
cmp ebp, 0x100
jae 0x4a279d
imul eax, ebx, 0x3526a
sar eax, 0x10
add eax, 0x43f
mov dword [esp + 0x64], eax
sar eax, 0x1f
mov dword [esp + 0x60], eax
mov ebx, dword [esp + 0x68]
shl ebx, 4
mov dword [esp + 0x68], ebx
lea edi, [0xebdf00]
mov ecx, dword [edi + ebx + 8]
mov dword [esp + 0x5c], ecx
mov ebx, dword [edi + ebx + 0xc]
mov dword [esp + 0x58], ebx
lea edi, [0x7eb118]
movzx ebp, byte [edi + ebp]
lea ebp, [ebp + esi - 0x40]
xchg ebp, ebx
neg ebx
xchg ebp, ebx
mov dword [esp + 0x20], ebp
mov ecx, ebp
mov edi, dword [esp + 0x70]
shl edi, cl
mov eax, dword [esp + 0x74]
shl eax, cl
lea edx, [ecx - 0x20]
mov ecx, edx
mov ebx, dword [esp + 0x70]
shl ebx, cl
neg ecx
mov esi, dword [esp + 0x70]
shr esi, cl
sar ebp, 0x1f
mov dword [esp + 0x54], ebp
cmp edx, 0x20
sbb edx, edx
and ebx, edx
mov edx, dword [esp + 0x20]
cmp edx, 0x20
sbb ebp, ebp
and edi, ebp
mov dword [esp + 0x50], edi
mov dword [esp], edi
and eax, ebp
cmp ecx, 0x20
sbb ebp, ebp
and esi, ebp
or esi, eax
or esi, ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 4], esi
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc], eax
call fcn.00497c20
mov eax, dword [esp + 0x10]
mov edx, eax
and eax, 0x1ff
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x64]
mov ecx, edx
mov edx, dword [esp + 0x20]
sub edi, edx
mov dword [esp + 0x34], edi
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x54]
sbb edx, edi
mov dword [esp + 0x60], edx
cmp eax, 0x1ff
sete al
and eax, 1
test al, al
je 0x4a25d8
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x50]
mov edi, eax
add eax, ebx
mov edx, dword [esp + 0x4c]
adc edx, ebp
mov ebx, dword [esp + 0x4c]
cmp ebx, edx
seta dl
sete bl
cmp eax, edi
setb al
and eax, ebx
or eax, edx
test al, al
jne 0x4a24d5
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x24]
jmp 0x4a25d8
mov dword [esp + 0x28], ebp
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x68]
lea ecx, [0xebdf00]
mov edx, dword [ecx + eax + 4]
mov eax, dword [ecx + eax]
mov dword [esp], edi
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.00497c20
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
add eax, edx
mov ebx, dword [esp + 0x28]
adc ecx, ebx
cmp ebx, ecx
seta bl
xchg ebp, ebx
sete bl
xchg ebp, ebx
cmp eax, edx
setb dl
and edx, ebp
or ebx, edx
test bl, bl
je 0x4a2547
mov edx, dword [esp + 0x5c]
add edx, 1
mov esi, dword [esp + 0x30]
adc esi, 0
jmp 0x4a254f
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x30]
mov ebx, edx
and edx, 0x1ff
cmp edx, 0x1ff
sete dl
and edx, 1
test dl, dl
je 0x4a25ce
cmp ecx, 0xffffffff
sete dl
cmp eax, 0xffffffff
xchg ebp, ebx
sete bl
xchg ebp, ebx
and ebp, edx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4a25ce
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x50]
add edx, edi
mov eax, dword [esp + 0x4c]
adc ebp, eax
cmp eax, ebp
seta al
xchg ebp, ebx
sete bl
xchg ebp, ebx
cmp edx, edi
setb dl
and edx, ebp
or edx, eax
test dl, dl
jne 0x4a25b6
mov eax, dword [esp + 0x48]
jmp 0x4a25ce
xorps xmm0, xmm0
movsd qword [esp + 0x80], xmm0
mov byte [esp + 0x88], 0
add esp, 0x6c
ret
mov edx, dword [esp + 0x60]
mov ebp, ecx
mov ecx, ebx
mov ebx, eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ecx
mov eax, esi
shr esi, 0x1f
mov edi, esi
xor esi, 1
mov dword [esp + 0x5c], esi
add edi, 9
mov edx, 0
adc edx, 0
cmp edx, 1
sbb edx, edx
xor edx, 0xffffffff
or edx, edi
mov edi, ecx
mov ecx, edx
shr edi, cl
shr eax, cl
lea ebp, [ecx - 0x20]
mov ecx, ebp
mov ebx, dword [esp + 0x30]
shr ebx, cl
neg ecx
mov esi, dword [esp + 0x30]
shl esi, cl
cmp ebp, 0x20
sbb ebp, ebp
and ebx, ebp
cmp ecx, 0x20
sbb ebp, ebp
and esi, ebp
cmp edx, 0x20
sbb edx, edx
and edi, edx
or esi, edi
or esi, ebx
and eax, edx
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x5c]
mov ebp, edx
sub edx, ebx
mov edi, dword [esp + 0x24]
test edi, edi
xchg edi, ebx
sete bl
xchg edi, ebx
mov ecx, edx
mov edx, dword [esp + 0x28]
test edx, edx
sete dl
and edx, edi
test dl, dl
je 0x4a26b9
mov edx, dword [esp + 0x2c]
test edx, 0x1ff
sete dl
and edx, 1
test dl, dl
je 0x4a26b3
mov edx, esi
and esi, 3
cmp esi, 1
xchg esi, ebx
sete bl
xchg esi, ebx
and esi, 1
xchg esi, eax
test al, al
xchg esi, eax
jne 0x4a269b
sub ebp, ebx
jmp 0x4a26bd
xorps xmm0, xmm0
movsd qword [esp + 0x80], xmm0
mov byte [esp + 0x88], 0
add esp, 0x6c
ret
sub ebp, ebx
mov edx, esi
jmp 0x4a26bd
sub ebp, ebx
mov edx, esi
mov ebx, dword [esp + 0x60]
sbb ebx, 0
mov ebp, edx
and edx, 1
add edx, ebp
adc eax, 0
mov ebp, edx
shr edx, 1
mov esi, eax
shl eax, 0x1f
mov edi, esi
shr esi, 0x16
or eax, edx
mov edx, edi
shr edi, 1
test esi, esi
xchg esi, ebx
seta bl
xchg esi, ebx
and esi, 1
xchg esi, eax
test al, al
xchg esi, eax
je 0x4a2709
shr ebp, 2
mov eax, edx
shl eax, 0x1e
or eax, ebp
shr edx, 2
add ecx, 1
adc ebx, 0
jmp 0x4a270b
mov edx, edi
mov ebp, ecx
add ecx, 0xffffffff
adc ebx, 0xffffffff
test ebx, ebx
seta bl
xchg esi, ebx
sete bl
xchg esi, ebx
cmp ecx, 0x7fe
setae cl
and ecx, esi
or ecx, ebx
test cl, cl
jne 0x4a276d
shl ebp, 0x14
and edx, 0xfffff
or ebp, edx
movzx ecx, byte [esp + 0x7c]
test cl, cl
je 0x4a274a
or ebp, 0x80000000
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebp
movsd xmm0, qword [esp + 0x38]
movsd qword [esp + 0x80], xmm0
mov byte [esp + 0x88], 1
add esp, 0x6c
ret
xorps xmm0, xmm0
movsd qword [esp + 0x80], xmm0
mov byte [esp + 0x88], 0
add esp, 0x6c
ret
xorps xmm0, xmm0
movsd qword [esp + 0x80], xmm0
mov byte [esp + 0x88], 0
add esp, 0x6c
ret
mov eax, ebp
mov ecx, 0x100
call fcn.0046c860
mov esi, ecx
mov eax, ebp
mov ecx, 0x100
call fcn.0046c940
nop
call fcn.0046b3d0
jmp fcn.004a2280