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

Disassembly:
mov ecx, dword [0x85d3cc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x479432
sub esp, 0x64
mov edx, dword [esp + 0x68]
test edx, edx
sete bl
mov ebp, dword [esp + 0x6c]
test ebp, ebp
xchg edi, ebx
sete bl
xchg edi, ebx
and edi, ebx
xchg edi, eax
test al, al
xchg edi, eax
je 0x478f7d
movzx eax, byte [esp + 0x74]
test al, al
je 0x478f68
movsd xmm0, qword [0x6f12b8]
jmp 0x478f6b
xorps xmm0, xmm0
movsd qword [esp + 0x78], xmm0
mov byte [esp + 0x80], 1
add esp, 0x64
ret
mov ebx, dword [esp + 0x70]
lea edi, [ebx + 0x15c]
cmp edi, 0x2b7
ja 0x479402
nop
cmp ebp, 1
sete al
seta cl
and eax, 1
or ecx, eax
test cl, cl
je 0x478faf
xor ecx, ecx
mov esi, 0x20
jmp 0x478fb5
mov ecx, ebp
mov ebp, edx
xor esi, esi
mov dword [esp + 0x58], edi
test ecx, ecx
seta al
sete dl
cmp ebp, 0x10000
xchg edi, ebx
setae bl
xchg edi, ebx
and edi, edx
or eax, edi
test al, al
je 0x478fe6
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 0x479013
shr ebp, 8
mov edx, ecx
shl edx, 0x18
or ebp, edx
shr ecx, 8
add esi, 8
test ecx, ecx
jne 0x479423
cmp ebp, 0x100
jae 0x479417
imul eax, ebx, 0x3526a
sar eax, 0x10
add eax, 0x43f
mov dword [esp + 0x54], eax
sar eax, 0x1f
mov dword [esp + 0x50], eax
mov ebx, dword [esp + 0x58]
shl ebx, 4
mov dword [esp + 0x58], ebx
lea edi, [0x82f8c0]
mov ecx, dword [edi + ebx + 8]
mov dword [esp + 0x4c], ecx
mov ebx, dword [edi + ebx + 0xc]
mov dword [esp + 0x48], ebx
lea edi, [0x6a6210]
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 + 0x68]
shl edi, cl
mov eax, dword [esp + 0x6c]
shl eax, cl
lea edx, [ecx - 0x20]
mov ecx, edx
mov esi, dword [esp + 0x68]
shl esi, cl
neg ecx
mov ebx, dword [esp + 0x68]
shr ebx, cl
sar ebp, 0x1f
mov dword [esp + 0x44], ebp
mov ebp, dword [esp + 0x20]
cmp ebp, 0x20
sbb ebp, ebp
and edi, ebp
mov dword [esp + 0x40], edi
and eax, ebp
cmp edx, 0x20
sbb edx, edx
and esi, edx
cmp ecx, 0x20
sbb edx, edx
and ebx, edx
or ebx, eax
or ebx, esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 4], ebx
mov dword [esp], edi
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
call fcn.00470530
mov eax, dword [esp + 0x10]
mov edx, eax
and eax, 0x1ff
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x54]
mov ecx, edx
mov edx, dword [esp + 0x20]
sub edi, edx
mov dword [esp + 0x34], edi
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x44]
sbb edx, edi
mov dword [esp + 0x50], edx
cmp eax, 0x1ff
sete al
and eax, 1
test al, al
je 0x479264
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x40]
mov edi, eax
add eax, ebp
mov edx, dword [esp + 0x3c]
adc edx, esi
mov ebx, dword [esp + 0x3c]
cmp ebx, edx
seta dl
sete bl
cmp eax, edi
setb al
and eax, ebx
or eax, edx
test al, al
jne 0x479164
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x30]
jmp 0x479264
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x58]
lea ecx, [0x82f8c0]
mov edx, dword [ecx + eax]
mov eax, dword [ecx + eax + 4]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
call fcn.00470530
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 0x4791d6
mov edx, dword [esp + 0x4c]
add edx, 1
mov ebx, dword [esp + 0x30]
adc ebx, 0
jmp 0x4791de
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x30]
mov ebp, edx
and edx, 0x1ff
cmp edx, 0x1ff
sete dl
and edx, 1
test dl, dl
je 0x47925a
cmp ecx, 0xffffffff
sete dl
cmp eax, 0xffffffff
xchg esi, ebx
sete bl
xchg esi, ebx
and esi, edx
xchg esi, eax
test al, al
xchg esi, eax
je 0x47925a
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x40]
add edx, edi
mov eax, dword [esp + 0x3c]
adc esi, eax
cmp eax, esi
seta al
xchg esi, ebx
sete bl
xchg esi, ebx
cmp edx, edi
setb dl
and edx, esi
or edx, eax
test dl, dl
jne 0x479245
mov eax, dword [esp + 0x38]
jmp 0x47925a
xorps xmm0, xmm0
movsd qword [esp + 0x78], xmm0
mov byte [esp + 0x80], 0
add esp, 0x64
ret
mov edx, dword [esp + 0x50]
mov esi, ecx
mov ecx, ebp
mov ebp, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], esi
mov eax, ebx
shr ebx, 0x1f
mov edi, ebx
xor ebx, 1
mov dword [esp + 0x4c], ebx
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 esi, [ecx - 0x20]
mov ecx, esi
mov ebp, dword [esp + 0x30]
shr ebp, cl
neg ecx
mov ebx, dword [esp + 0x30]
shl ebx, cl
cmp edx, 0x20
sbb edx, edx
and edi, edx
and eax, edx
cmp ecx, 0x20
sbb edx, edx
and ebx, edx
or ebx, edi
cmp esi, 0x20
sbb edx, edx
and edx, ebp
or ebx, edx
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x4c]
mov esi, edx
sub edx, ebp
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 0x47933c
mov edx, dword [esp + 0x2c]
test edx, 0x1ff
sete dl
and edx, 1
test dl, dl
je 0x479336
mov edx, ebx
and ebx, 3
cmp ebx, 1
sete bl
and ebx, 1
test bl, bl
jne 0x479321
sub esi, ebp
jmp 0x479340
xorps xmm0, xmm0
movsd qword [esp + 0x78], xmm0
mov byte [esp + 0x80], 0
add esp, 0x64
ret
sub esi, ebp
mov edx, ebx
jmp 0x479340
sub esi, ebp
mov edx, ebx
mov ebx, dword [esp + 0x50]
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 0x47938c
shr ebp, 2
mov eax, edx
shl eax, 0x1e
or eax, ebp
shr edx, 2
add ecx, 1
adc ebx, 0
jmp 0x47938e
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 0x4793ed
shl ebp, 0x14
and edx, 0xfffff
or ebp, edx
movzx ecx, byte [esp + 0x74]
test cl, cl
je 0x4793cd
or ebp, 0x80000000
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ebp
movsd xmm0, qword [esp + 0x5c]
movsd qword [esp + 0x78], xmm0
mov byte [esp + 0x80], 1
add esp, 0x64
ret
xorps xmm0, xmm0
movsd qword [esp + 0x78], xmm0
mov byte [esp + 0x80], 0
add esp, 0x64
ret
xorps xmm0, xmm0
movsd qword [esp + 0x78], xmm0
mov byte [esp + 0x80], 0
add esp, 0x64
ret
mov eax, ebp
mov ecx, 0x100
call fcn.004680a0
mov esi, ecx
mov eax, ebp
mov ecx, 0x100
call fcn.00468180
nop
call fcn.00466c30
jmp fcn.00478f20